pub trait Datamaxi {
// Required methods
fn new(api_key: String) -> Self;
fn new_with_base_url(api_key: String, base_url: String) -> Self;
}Expand description
A trait that defines the required methods for interacting with the Datamaxi+ API.
Required Methods§
sourcefn new(api_key: String) -> Self
fn new(api_key: String) -> Self
Creates a new instance of the implementing type using the provided API key.
sourcefn new_with_base_url(api_key: String, base_url: String) -> Self
fn new_with_base_url(api_key: String, base_url: String) -> Self
Creates a new instance of the implementing type using the provided API key and base URL.
Object Safety§
This trait is not object safe.
Implementors§
impl Datamaxi for Candle
Implements the Datamaxi trait for Candle, providing methods
to create new instances of Candle with or without a custom base URL.
impl Datamaxi for Dex
Implements the Datamaxi trait for Dex, providing methods
to create new instances of Dex with or without a custom base URL.