pub struct FixedRoleExtractor { /* private fields */ }Expand description
A roles extractor that always returns fixed roles.
Useful for testing or for routes that should always use specific roles.
Implementations§
Trait Implementations§
Source§impl Clone for FixedRoleExtractor
impl Clone for FixedRoleExtractor
Source§fn clone(&self) -> FixedRoleExtractor
fn clone(&self) -> FixedRoleExtractor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FixedRoleExtractor
impl Debug for FixedRoleExtractor
Source§impl<B> RoleExtractor<B> for FixedRoleExtractor
impl<B> RoleExtractor<B> for FixedRoleExtractor
Source§fn extract_roles(&self, _request: &Request<B>) -> RoleExtractionResult
fn extract_roles(&self, _request: &Request<B>) -> RoleExtractionResult
Extract the roles bitmask from an HTTP request.
Auto Trait Implementations§
impl Freeze for FixedRoleExtractor
impl RefUnwindSafe for FixedRoleExtractor
impl Send for FixedRoleExtractor
impl Sync for FixedRoleExtractor
impl Unpin for FixedRoleExtractor
impl UnwindSafe for FixedRoleExtractor
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