Trait Config

Source
pub trait Config: Clone {
    // Required methods
    fn headers(&self) -> HeaderMap;
    fn url(&self, path: &str) -> String;
    fn api_url(&self) -> &str;
    fn access_token(&self) -> &str;
}

Required Methods§

Source

fn headers(&self) -> HeaderMap

Source

fn url(&self, path: &str) -> String

Source

fn api_url(&self) -> &str

Source

fn access_token(&self) -> &str

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.

Implementors§