pub struct ServiceClaims {
pub ty: TokenType,
pub common_name: String,
}
Expand description
The information in the JWT when authenticating with a service token.
Fields§
§ty: TokenType
The type of Access token.
common_name: String
The Client ID of the service token (CF-Access-Client-Id
).
Trait Implementations§
Source§impl Clone for ServiceClaims
impl Clone for ServiceClaims
Source§fn clone(&self) -> ServiceClaims
fn clone(&self) -> ServiceClaims
Returns a copy 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 ServiceClaims
impl Debug for ServiceClaims
Source§impl<'de> Deserialize<'de> for ServiceClaims
impl<'de> Deserialize<'de> for ServiceClaims
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<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.
Source§impl Hash for ServiceClaims
impl Hash for ServiceClaims
Source§impl PartialEq for ServiceClaims
impl PartialEq for ServiceClaims
Source§impl Serialize for ServiceClaims
impl Serialize for ServiceClaims
impl Eq for ServiceClaims
impl StructuralPartialEq for ServiceClaims
Auto Trait Implementations§
impl Freeze for ServiceClaims
impl RefUnwindSafe for ServiceClaims
impl Send for ServiceClaims
impl Sync for ServiceClaims
impl Unpin for ServiceClaims
impl UnwindSafe for ServiceClaims
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.