pub struct Authorizer<C = RegisteredClaims>{
pub key_source: KeySource,
pub claims_checker: Option<ClaimsCheckerFn<C>>,
pub validation: Validation,
pub jwt_source: JwtSource,
}
Fields§
§key_source: KeySource
§claims_checker: Option<ClaimsCheckerFn<C>>
§validation: Validation
§jwt_source: JwtSource
Implementations§
Source§impl<C> Authorizer<C>
impl<C> Authorizer<C>
Trait Implementations§
Source§impl<C> IntoLayer<C> for Authorizer<C>
impl<C> IntoLayer<C> for Authorizer<C>
fn into_layer(self) -> AuthorizationLayer<C>
Auto Trait Implementations§
impl<C> Freeze for Authorizer<C>
impl<C = RegisteredClaims> !RefUnwindSafe for Authorizer<C>
impl<C> Send for Authorizer<C>
impl<C> Sync for Authorizer<C>
impl<C> Unpin for Authorizer<C>
impl<C = RegisteredClaims> !UnwindSafe for Authorizer<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more