1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*! # `simple-authorization` Request Guard for Rocket Framework This crate provides a request guard builder used for authorization. See `examples`. */ mod macros; /// The trait for an authorizer. pub trait SimpleAuthorization { fn has_authority<S: AsRef<str>>(key: S) -> bool; fn create_auth<S: Into<String>>(key: S) -> Self; }