#[repr(u8)]pub enum KeyExportOp {
None = 0,
Latest = 1,
Both = 2,
}
Expand description
Enum representing different key export operations.
This enum defines the operations for key export, represented by a specific u8
value.
The available operations include:
None
: No key export operation (0).Latest
: Export the latest key (1).Both
: Export both keys (2).
§Variants
None
: No key export operation (0).Latest
: Only export the latest key (1).Both
: Export both the latest and previous keys (2).
Variants§
None = 0
No key export operation (0).
Latest = 1
Export the latest key (1).
Both = 2
Export both keys (2).
Trait Implementations§
Source§impl Clone for KeyExportOp
impl Clone for KeyExportOp
Source§fn clone(&self) -> KeyExportOp
fn clone(&self) -> KeyExportOp
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 KeyExportOp
impl Debug for KeyExportOp
Source§impl Default for KeyExportOp
impl Default for KeyExportOp
Source§fn default() -> KeyExportOp
fn default() -> KeyExportOp
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyExportOp
impl<'de> Deserialize<'de> for KeyExportOp
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 Ord for KeyExportOp
impl Ord for KeyExportOp
Source§fn cmp(&self, other: &KeyExportOp) -> Ordering
fn cmp(&self, other: &KeyExportOp) -> Ordering
1.21.0 · 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 KeyExportOp
impl PartialEq for KeyExportOp
Source§impl PartialOrd for KeyExportOp
impl PartialOrd for KeyExportOp
Source§impl Serialize for KeyExportOp
impl Serialize for KeyExportOp
Source§impl TryFrom<u8> for KeyExportOp
impl TryFrom<u8> for KeyExportOp
Source§fn try_from(value: u8) -> Result<Self, Self::Error>
fn try_from(value: u8) -> Result<Self, Self::Error>
Tries to convert a u8
value to the corresponding KeyExportOp
variant.
§Parameters
value
: Theu8
value representing the key export operation.
§Returns
Ok(KeyExportOp)
: The correspondingKeyExportOp
variant if the value matches.Err(Error::InvalidEnumValue)
: An error if the value doesn’t match a valid key export operation.
impl Copy for KeyExportOp
impl Eq for KeyExportOp
impl StructuralPartialEq for KeyExportOp
Auto Trait Implementations§
impl Freeze for KeyExportOp
impl RefUnwindSafe for KeyExportOp
impl Send for KeyExportOp
impl Sync for KeyExportOp
impl Unpin for KeyExportOp
impl UnwindSafe for KeyExportOp
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