pub enum RevocationCode {
NoReason,
Superseded,
Compromised,
Retired,
}Expand description
Revocation reason code. Values 0..=3 per RFC 4880 §5.2.3.23.
Wire names are the librnp C-API identifiers (not the numeric values),
because rnp_key_revoke / rnp_key_export_revocation use
str_to_revocation_type to map by name.
Variants§
NoReason
"no" — no specific reason (default).
Superseded
"superseded" — key superseded.
Compromised
"compromised" — key material compromised.
Retired
"retired" — key retired.
Implementations§
Trait Implementations§
Source§impl Clone for RevocationCode
impl Clone for RevocationCode
Source§fn clone(&self) -> RevocationCode
fn clone(&self) -> RevocationCode
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 RevocationCode
Source§impl Debug for RevocationCode
impl Debug for RevocationCode
Source§impl Default for RevocationCode
impl Default for RevocationCode
Source§fn default() -> RevocationCode
fn default() -> RevocationCode
Returns the “default value” for a type. Read more
impl Eq for RevocationCode
Source§impl PartialEq for RevocationCode
impl PartialEq for RevocationCode
impl StructuralPartialEq for RevocationCode
Auto Trait Implementations§
impl Freeze for RevocationCode
impl RefUnwindSafe for RevocationCode
impl Send for RevocationCode
impl Sync for RevocationCode
impl Unpin for RevocationCode
impl UnsafeUnpin for RevocationCode
impl UnwindSafe for RevocationCode
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