pub enum TokenAlgorithm {
TokenAlgorithmUnspecified,
TokenAlgorithmJwt,
TokenAlgorithmMacaroon,
}Expand description
TokenAlgorithm : - TOKEN_ALGORITHM_JWT: JWT with EdDSA (self-contained, signed) - TOKEN_ALGORITHM_MACAROON: Macaroon with HMAC (self-contained, caveat-based)
- TOKEN_ALGORITHM_JWT: JWT with EdDSA (self-contained, signed) - TOKEN_ALGORITHM_MACAROON: Macaroon with HMAC (self-contained, caveat-based)
Variants§
Trait Implementations§
Source§impl Clone for TokenAlgorithm
impl Clone for TokenAlgorithm
impl Copy for TokenAlgorithm
Source§impl Debug for TokenAlgorithm
impl Debug for TokenAlgorithm
Source§impl Default for TokenAlgorithm
impl Default for TokenAlgorithm
Source§fn default() -> TokenAlgorithm
fn default() -> TokenAlgorithm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TokenAlgorithm
impl<'de> Deserialize<'de> for TokenAlgorithm
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 Display for TokenAlgorithm
impl Display for TokenAlgorithm
impl Eq for TokenAlgorithm
Source§impl Hash for TokenAlgorithm
impl Hash for TokenAlgorithm
Source§impl Ord for TokenAlgorithm
impl Ord for TokenAlgorithm
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 TokenAlgorithm
impl PartialEq for TokenAlgorithm
Source§impl PartialOrd for TokenAlgorithm
impl PartialOrd for TokenAlgorithm
Source§impl Serialize for TokenAlgorithm
impl Serialize for TokenAlgorithm
impl StructuralPartialEq for TokenAlgorithm
Auto Trait Implementations§
impl Forget for TokenAlgorithm
impl Freeze for TokenAlgorithm
impl RefUnwindSafe for TokenAlgorithm
impl Send for TokenAlgorithm
impl Sync for TokenAlgorithm
impl Unpin for TokenAlgorithm
impl UnsafeUnpin for TokenAlgorithm
impl UnwindSafe for TokenAlgorithm
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