pub struct RevocationReason {
pub code: RevocationCode,
pub reason: Option<String>,
}Expand description
Reason for revoking a key or UID.
Fields§
§code: RevocationCode§reason: Option<String>Implementations§
Source§impl RevocationReason
impl RevocationReason
pub fn new(code: RevocationCode) -> Self
pub fn with_reason(self, reason: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for RevocationReason
impl Clone for RevocationReason
Source§fn clone(&self) -> RevocationReason
fn clone(&self) -> RevocationReason
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 moreSource§impl Debug for RevocationReason
impl Debug for RevocationReason
Source§impl Default for RevocationReason
impl Default for RevocationReason
Source§fn default() -> RevocationReason
fn default() -> RevocationReason
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RevocationReason
impl RefUnwindSafe for RevocationReason
impl Send for RevocationReason
impl Sync for RevocationReason
impl Unpin for RevocationReason
impl UnsafeUnpin for RevocationReason
impl UnwindSafe for RevocationReason
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