pub trait Provider: DynClone {
    type Scope: Scope;

    // Required methods
    fn client_id(&self) -> Option<&ClientId>;
    fn client_secret(&self) -> Option<&ClientSecret>;
    fn token_endpoint_url(&self) -> &Url;

    // Provided method
    fn extra(&self) -> Option<Map<String, Value>> { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

Trait Implementations§

source§

impl<'clone, SCOPE> Clone for Box<dyn Provider<Scope = SCOPE> + 'clone>where SCOPE: Scope + Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, SCOPE> Clone for Box<dyn Provider<Scope = SCOPE> + Send + 'clone>where SCOPE: Scope + Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, SCOPE> Clone for Box<dyn Provider<Scope = SCOPE> + Send + Sync + 'clone>where SCOPE: Scope + Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, SCOPE> Clone for Box<dyn Provider<Scope = SCOPE> + Sync + 'clone>where SCOPE: Scope + Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§