#[non_exhaustive]pub enum TokenDecode {
Jwt,
Other(String),
}Expand description
A credential’s decode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for TokenDecode
impl AsRef<str> for TokenDecode
Source§impl Clone for TokenDecode
impl Clone for TokenDecode
Source§impl Debug for TokenDecode
impl Debug for TokenDecode
Source§impl<'de> Deserialize<'de> for TokenDecode
impl<'de> Deserialize<'de> for TokenDecode
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TokenDecode
impl Display for TokenDecode
impl Eq for TokenDecode
Source§impl From<&str> for TokenDecode
impl From<&str> for TokenDecode
Source§impl From<String> for TokenDecode
impl From<String> for TokenDecode
Source§impl Hash for TokenDecode
impl Hash for TokenDecode
Source§impl Ord for TokenDecode
impl Ord for TokenDecode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TokenDecode
impl PartialEq for TokenDecode
Source§impl PartialOrd for TokenDecode
impl PartialOrd for TokenDecode
Source§impl Serialize for TokenDecode
impl Serialize for TokenDecode
impl StructuralPartialEq for TokenDecode
Auto Trait Implementations§
impl Forget for TokenDecode
impl Freeze for TokenDecode
impl Move for TokenDecode
impl RefUnwindSafe for TokenDecode
impl Send for TokenDecode
impl Sync for TokenDecode
impl Unpin for TokenDecode
impl UnsafeUnpin for TokenDecode
impl UnwindSafe for TokenDecode
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