#[non_exhaustive]pub struct SignatureVerification {
pub outcome: SignatureVerifyOutcome,
pub policy: String,
pub detail: Option<String>,
}Expand description
The result of SignatureVerifier::verify: the outcome, and which
verifier and policy produced it, so a result can be audited later.
Experimental: may change in a 0.x minor release.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.outcome: SignatureVerifyOutcomeThe outcome.
policy: StringThe verifier and the policy it applied, for example
caller key ed25519 sha256:3b6a… for a SignatureVerifyOutcome::Verified
result: the key that verified, by the SHA-256 of its DER
SubjectPublicKeyInfo.
detail: Option<String>Why the outcome is not Verified, when there is more to say.
Implementations§
Source§impl SignatureVerification
impl SignatureVerification
Sourcepub fn new(outcome: SignatureVerifyOutcome, policy: impl Into<String>) -> Self
pub fn new(outcome: SignatureVerifyOutcome, policy: impl Into<String>) -> Self
A result with no detail.
Sourcepub fn with_detail(self, detail: impl Into<String>) -> Self
pub fn with_detail(self, detail: impl Into<String>) -> Self
Add a detail.
Trait Implementations§
Source§impl Clone for SignatureVerification
impl Clone for SignatureVerification
Source§impl Debug for SignatureVerification
impl Debug for SignatureVerification
impl Eq for SignatureVerification
Source§impl PartialEq for SignatureVerification
impl PartialEq for SignatureVerification
impl StructuralPartialEq for SignatureVerification
Auto Trait Implementations§
impl Forget for SignatureVerification
impl Freeze for SignatureVerification
impl Move for SignatureVerification
impl RefUnwindSafe for SignatureVerification
impl Send for SignatureVerification
impl Sync for SignatureVerification
impl Unpin for SignatureVerification
impl UnsafeUnpin for SignatureVerification
impl UnwindSafe for SignatureVerification
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