pub enum VerifyStatus {
Good {
signer: String,
},
UnknownKey {
key_id: Option<String>,
},
Bad,
Other(String),
}Expand description
What gpg --verify reported for a signature. Returned by
verify so callers (CLI, TUI, log-column renderer) can show a
status-coloured indicator without each one re-parsing gpg
stderr.
Variants§
Good
gpg: Good signature — the key is trusted and the data is
intact.
UnknownKey
Signature is valid but the signing key isn’t in the local
keyring (NO_PUBKEY / Can't check signature). The data
could still be authentic; the user just can’t prove it
locally.
Bad
gpg: BAD signature — payload was tampered with, or the
signature was made by a different key than what’s attached.
Other(String)
Anything else gpg might say: expired key, revoked, agent errors, …
Trait Implementations§
Source§impl Clone for VerifyStatus
impl Clone for VerifyStatus
Source§fn clone(&self) -> VerifyStatus
fn clone(&self) -> VerifyStatus
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 VerifyStatus
impl Debug for VerifyStatus
Source§impl PartialEq for VerifyStatus
impl PartialEq for VerifyStatus
Source§fn eq(&self, other: &VerifyStatus) -> bool
fn eq(&self, other: &VerifyStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VerifyStatus
Auto Trait Implementations§
impl Freeze for VerifyStatus
impl RefUnwindSafe for VerifyStatus
impl Send for VerifyStatus
impl Sync for VerifyStatus
impl Unpin for VerifyStatus
impl UnsafeUnpin for VerifyStatus
impl UnwindSafe for VerifyStatus
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