#[repr(u16)]pub enum KeyVersion {
Latest = 0,
V1 = 1,
}
Expand description
The versions of the key scheme to use.
Variants§
Trait Implementations§
Source§impl Clone for KeyVersion
impl Clone for KeyVersion
Source§fn clone(&self) -> KeyVersion
fn clone(&self) -> KeyVersion
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 KeyVersion
impl Debug for KeyVersion
Source§impl Default for KeyVersion
impl Default for KeyVersion
Source§impl From<KeyVersion> for u16
impl From<KeyVersion> for u16
Source§fn from(enum_value: KeyVersion) -> Self
fn from(enum_value: KeyVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KeyVersion
impl PartialEq for KeyVersion
Source§impl TryFrom<u16> for KeyVersion
impl TryFrom<u16> for KeyVersion
Source§type Error = TryFromPrimitiveError<KeyVersion>
type Error = TryFromPrimitiveError<KeyVersion>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for KeyVersion
impl TryFromPrimitive for KeyVersion
const NAME: &'static str = "KeyVersion"
type Primitive = u16
type Error = TryFromPrimitiveError<KeyVersion>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl Zeroize for KeyVersion
impl Zeroize for KeyVersion
impl Copy for KeyVersion
impl Eq for KeyVersion
impl StructuralPartialEq for KeyVersion
Auto Trait Implementations§
impl Freeze for KeyVersion
impl RefUnwindSafe for KeyVersion
impl Send for KeyVersion
impl Sync for KeyVersion
impl Unpin for KeyVersion
impl UnwindSafe for KeyVersion
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.