[][src]Trait rocket_simple_authorization::SimpleAuthorization

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

The trait for an authorizer.

Required methods

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

fn create_auth<S: Into<String>>(key: S) -> Self

Loading content...

Implementors

Loading content...