pub enum Claims {
Identity(IdentityClaims),
Service(ServiceClaims),
}
Expand description
The user information found in the JWT.
Variants§
Identity(IdentityClaims)
The user authenticated with an identity provider.
Service(ServiceClaims)
The client authenticated with a service token.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Claims
impl<'de> Deserialize<'de> for Claims
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<IdentityClaims> for Claims
impl From<IdentityClaims> for Claims
Source§fn from(value: IdentityClaims) -> Self
fn from(value: IdentityClaims) -> Self
Converts to this type from the input type.
Source§impl From<ServiceClaims> for Claims
impl From<ServiceClaims> for Claims
Source§fn from(value: ServiceClaims) -> Self
fn from(value: ServiceClaims) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Claims
impl RefUnwindSafe for Claims
impl Send for Claims
impl Sync for Claims
impl Unpin for Claims
impl UnwindSafe for Claims
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