pub struct CredentialMeta {
pub issuer: Option<String>,
pub scopes: Vec<String>,
pub expires_at: Option<u64>,
}Expand description
What the stored credentials were issued for.
Fields§
§issuer: Option<String>Issuer of the authorization server that issued the tokens. Credentials are never used with another authorization server.
scopes: Vec<String>Scopes requested when the tokens were obtained.
expires_at: Option<u64>When the access token expires (seconds since the Unix epoch), if known.
Trait Implementations§
Source§impl Clone for CredentialMeta
impl Clone for CredentialMeta
Source§fn clone(&self) -> CredentialMeta
fn clone(&self) -> CredentialMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CredentialMeta
impl Debug for CredentialMeta
Source§impl Default for CredentialMeta
impl Default for CredentialMeta
Source§fn default() -> CredentialMeta
fn default() -> CredentialMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CredentialMeta
impl<'de> Deserialize<'de> for CredentialMeta
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
impl Eq for CredentialMeta
Source§impl PartialEq for CredentialMeta
impl PartialEq for CredentialMeta
Source§impl Serialize for CredentialMeta
impl Serialize for CredentialMeta
impl StructuralPartialEq for CredentialMeta
Auto Trait Implementations§
impl Freeze for CredentialMeta
impl RefUnwindSafe for CredentialMeta
impl Send for CredentialMeta
impl Sync for CredentialMeta
impl Unpin for CredentialMeta
impl UnsafeUnpin for CredentialMeta
impl UnwindSafe for CredentialMeta
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.