pub enum KeyPurpose {
Session,
Api,
}Expand description
KeyPurpose
JSON schema
{
"type": "string",
"enum": [
"session",
"api"
]
}Variants§
Trait Implementations§
Source§impl Clone for KeyPurpose
impl Clone for KeyPurpose
Source§fn clone(&self) -> KeyPurpose
fn clone(&self) -> KeyPurpose
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 moreimpl Copy for KeyPurpose
Source§impl Debug for KeyPurpose
impl Debug for KeyPurpose
Source§impl<'de> Deserialize<'de> for KeyPurpose
impl<'de> Deserialize<'de> for KeyPurpose
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 KeyPurpose
impl Display for KeyPurpose
impl Eq for KeyPurpose
Source§impl FromStr for KeyPurpose
impl FromStr for KeyPurpose
Source§impl Hash for KeyPurpose
impl Hash for KeyPurpose
Source§impl Ord for KeyPurpose
impl Ord for KeyPurpose
Source§fn cmp(&self, other: &KeyPurpose) -> Ordering
fn cmp(&self, other: &KeyPurpose) -> Ordering
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
Source§impl PartialEq for KeyPurpose
impl PartialEq for KeyPurpose
Source§fn eq(&self, other: &KeyPurpose) -> bool
fn eq(&self, other: &KeyPurpose) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for KeyPurpose
impl PartialOrd for KeyPurpose
Source§impl Serialize for KeyPurpose
impl Serialize for KeyPurpose
impl StructuralPartialEq for KeyPurpose
Source§impl TryFrom<&String> for KeyPurpose
impl TryFrom<&String> for KeyPurpose
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for KeyPurpose
impl TryFrom<&str> for KeyPurpose
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for KeyPurpose
impl TryFrom<String> for KeyPurpose
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for KeyPurpose
impl RefUnwindSafe for KeyPurpose
impl Send for KeyPurpose
impl Sync for KeyPurpose
impl Unpin for KeyPurpose
impl UnsafeUnpin for KeyPurpose
impl UnwindSafe for KeyPurpose
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