Trait Endpoint

Source
pub trait Endpoint {
    // Required methods
    fn registrar(&self) -> &(dyn Registrar + Sync);
    fn authorizer(&mut self) -> &mut (dyn Authorizer + Send);
    fn issuer(&mut self) -> &mut (dyn Issuer + Send);
    fn extension(&mut self) -> &mut (dyn Extension + Send);
}

Required Methods§

Source

fn registrar(&self) -> &(dyn Registrar + Sync)

Get the client corresponding to some id.

Source

fn authorizer(&mut self) -> &mut (dyn Authorizer + Send)

Get the authorizer from which we can recover the authorization.

Source

fn issuer(&mut self) -> &mut (dyn Issuer + Send)

Return the issuer instance to create the access token.

Source

fn extension(&mut self) -> &mut (dyn Extension + Send)

The system of used extension, extending responses.

It is possible to use &mut ().

Implementors§