Trait datamaxi::api::Datamaxi

source ·
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§

source

fn new(api_key: String) -> Self

Creates a new instance of the implementing type using the provided API key.

source

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§

source§

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.

source§

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.