pub struct AuthPrincipal { /* private fields */ }Implementations§
Source§impl AuthPrincipal
Inherent helpers for AuthPrincipal.
impl AuthPrincipal
Inherent helpers for AuthPrincipal.
Source§impl AuthPrincipal
impl AuthPrincipal
pub fn get_subject(&self) -> &String
pub fn get_mut_subject(&mut self) -> &mut String
pub fn set_subject(&mut self, val: String) -> &mut Self
pub fn get_roles(&self) -> &Vec<String>
pub fn get_mut_roles(&mut self) -> &mut Vec<String>
pub fn set_roles(&mut self, val: Vec<String>) -> &mut Self
pub fn get_scheme(&self) -> AuthScheme
pub fn get_mut_scheme(&mut self) -> &mut AuthScheme
pub fn set_scheme(&mut self, val: AuthScheme) -> &mut Self
pub fn get_claims(&self) -> Option<JwtClaims>
pub fn try_get_claims(&self) -> Option<JwtClaims>
pub fn get_mut_claims(&mut self) -> &mut Option<JwtClaims>
pub fn set_claims(&mut self, val: Option<JwtClaims>) -> &mut Self
Trait Implementations§
Source§impl Clone for AuthPrincipal
impl Clone for AuthPrincipal
Source§impl Debug for AuthPrincipal
impl Debug for AuthPrincipal
Source§impl PartialEq for AuthPrincipal
impl PartialEq for AuthPrincipal
impl StructuralPartialEq for AuthPrincipal
Auto Trait Implementations§
impl Forget for AuthPrincipal
impl Freeze for AuthPrincipalwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, Value)>: Freeze,
impl Move for AuthPrincipal
impl RefUnwindSafe for AuthPrincipal
impl Send for AuthPrincipal
impl Sync for AuthPrincipal
impl Unpin for AuthPrincipal
impl UnsafeUnpin for AuthPrincipalwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
impl UnwindSafe for AuthPrincipal
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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