pub enum KeyRevocationType {
Compromised,
Retired,
Superseded,
}
Expand description
Enum of understood key revocation types
This enum only matches a narrow subset of ReasonForRevocation
, as we are targeting keys and do not support “unspecified” revocations.
Variants§
Compromised
A hard revocation, that indicates the private key material is compromised
Retired
A soft revocation, that indicates the key is retired
Superseded
A soft revocation, that indicates the key is superseded by another one
Trait Implementations§
Source§impl Clone for KeyRevocationType
impl Clone for KeyRevocationType
Source§fn clone(&self) -> KeyRevocationType
fn clone(&self) -> KeyRevocationType
Returns a duplicate 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 KeyRevocationType
impl Debug for KeyRevocationType
Source§impl Display for KeyRevocationType
impl Display for KeyRevocationType
Source§impl From<KeyRevocationType> for ReasonForRevocation
impl From<KeyRevocationType> for ReasonForRevocation
Source§fn from(from: KeyRevocationType) -> Self
fn from(from: KeyRevocationType) -> Self
Converts to this type from the input type.
Source§impl FromStr for KeyRevocationType
impl FromStr for KeyRevocationType
Source§impl IntoEnumIterator for KeyRevocationType
impl IntoEnumIterator for KeyRevocationType
type Iterator = KeyRevocationTypeIter
fn iter() -> KeyRevocationTypeIter ⓘ
Source§impl TryFrom<&str> for KeyRevocationType
impl TryFrom<&str> for KeyRevocationType
impl Copy for KeyRevocationType
Auto Trait Implementations§
impl Freeze for KeyRevocationType
impl RefUnwindSafe for KeyRevocationType
impl Send for KeyRevocationType
impl Sync for KeyRevocationType
impl Unpin for KeyRevocationType
impl UnwindSafe for KeyRevocationType
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