ClientCreator

Trait ClientCreator 

Source
pub trait ClientCreator: Sized {
    // Required method
    fn new<TP>(client: Client, url: Url, token_provider: TP) -> Result<Self>
       where TP: TokenProvider + 'static;
}
Expand description

Create a new client from a URL, an HTTP client, and a token provider.

Required Methods§

Source

fn new<TP>(client: Client, url: Url, token_provider: TP) -> Result<Self>
where TP: TokenProvider + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ClientCreator for Client

Source§

fn new<TP>(client: Client, url: Url, token_provider: TP) -> Result<Self>
where TP: TokenProvider + 'static,

Source§

impl ClientCreator for Client

Source§

fn new<TP>(client: Client, url: Url, token_provider: TP) -> Result<Self>
where TP: TokenProvider + 'static,

Source§

impl ClientCreator for Client

Source§

fn new<TP>(client: Client, url: Url, token_provider: TP) -> Result<Self>
where TP: TokenProvider + 'static,

Source§

impl ClientCreator for Client

Source§

fn new<TP>(client: Client, url: Url, token_provider: TP) -> Result<Self>
where TP: TokenProvider + 'static,

Implementors§