Enum VerificationResult
pub enum VerificationResult {
Valid {
publisher_key: String,
},
Unsigned,
Untrusted,
Invalid {
reason: String,
},
}Expand description
Result of verifying a plugin’s signature.
Variants§
Valid
Signature is valid and matches a trusted publisher key.
Unsigned
Plugin has no signature field.
Untrusted
Signature is present but does not match any trusted key.
Invalid
Signature is present but cryptographically invalid.
Implementations§
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§fn clone(&self) -> VerificationResult
fn clone(&self) -> VerificationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerificationResult
impl Debug for VerificationResult
Source§impl PartialEq for VerificationResult
impl PartialEq for VerificationResult
Source§fn eq(&self, other: &VerificationResult) -> bool
fn eq(&self, other: &VerificationResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for VerificationResult
impl StructuralPartialEq for VerificationResult
Auto Trait Implementations§
impl Freeze for VerificationResult
impl RefUnwindSafe for VerificationResult
impl Send for VerificationResult
impl Sync for VerificationResult
impl Unpin for VerificationResult
impl UnsafeUnpin for VerificationResult
impl UnwindSafe for VerificationResult
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