pub enum RoleExtractionResult {
Roles(u32),
Anonymous,
Error(String),
}Expand description
Result of role extraction.
Variants§
Roles(u32)
Roles were successfully extracted (u32 bitmask).
Anonymous
No role could be extracted (user is anonymous/guest).
Error(String)
An error occurred during extraction.
Implementations§
Trait Implementations§
Source§impl Clone for RoleExtractionResult
impl Clone for RoleExtractionResult
Source§fn clone(&self) -> RoleExtractionResult
fn clone(&self) -> RoleExtractionResult
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 moreAuto Trait Implementations§
impl Freeze for RoleExtractionResult
impl RefUnwindSafe for RoleExtractionResult
impl Send for RoleExtractionResult
impl Sync for RoleExtractionResult
impl Unpin for RoleExtractionResult
impl UnwindSafe for RoleExtractionResult
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