pub struct VerificationResult {
pub all_valid: bool,
pub document_hash: DocumentHash,
pub signatures: Vec<SignatureResult>,
}Expand description
Result of verifying all signatures on a document.
Fields§
§all_valid: boolWhether all signatures are valid.
document_hash: DocumentHashThe document hash that was verified.
signatures: Vec<SignatureResult>Results for each individual signature.
Implementations§
Source§impl VerificationResult
impl VerificationResult
Sourcepub fn valid_count(&self) -> usize
pub fn valid_count(&self) -> usize
Get the number of valid signatures.
Sourcepub fn invalid_count(&self) -> usize
pub fn invalid_count(&self) -> usize
Get the number of invalid signatures.
Sourcepub fn valid_signers(&self) -> Vec<Option<String>>
pub fn valid_signers(&self) -> Vec<Option<String>>
Get all valid signer IDs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VerificationResult
impl RefUnwindSafe for VerificationResult
impl Send for VerificationResult
impl Sync for VerificationResult
impl Unpin 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