[][src]Trait rocket_simple_authorization::SimpleAuthorization

pub trait SimpleAuthorization {
    fn has_authority<S: AsRef<str>>(key: Option<S>) -> bool;
fn create_auth<S: AsRef<str>>(key: Option<S>) -> Self; }

The trait for an authorizer.

Required methods

fn has_authority<S: AsRef<str>>(key: Option<S>) -> bool

fn create_auth<S: AsRef<str>>(key: Option<S>) -> Self

Loading content...

Implementors

Loading content...