pub enum SignatureStatus {
AuthsSigned {
signer_did: String,
},
SshSigned,
GpgSigned {
verified: bool,
},
Unsigned,
InvalidSignature {
reason: String,
},
}Expand description
Classification of a commit’s cryptographic signature.
Usage:
ⓘ
match status {
SignatureStatus::AuthsSigned { signer_did } => println!("Signed by {signer_did}"),
SignatureStatus::SshSigned => println!("SSH signed"),
SignatureStatus::GpgSigned { verified } => println!("GPG signed, verified={verified}"),
SignatureStatus::Unsigned => println!("No signature"),
SignatureStatus::InvalidSignature { reason } => println!("Bad sig: {reason}"),
}Variants§
AuthsSigned
Signed using the auths workflow.
SshSigned
Signed using SSH.
GpgSigned
Signed using GPG.
Unsigned
No signature present.
InvalidSignature
A signature was present but invalid.
Trait Implementations§
Source§impl Clone for SignatureStatus
impl Clone for SignatureStatus
Source§fn clone(&self) -> SignatureStatus
fn clone(&self) -> SignatureStatus
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 moreAuto Trait Implementations§
impl Freeze for SignatureStatus
impl RefUnwindSafe for SignatureStatus
impl Send for SignatureStatus
impl Sync for SignatureStatus
impl Unpin for SignatureStatus
impl UnsafeUnpin for SignatureStatus
impl UnwindSafe for SignatureStatus
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