#[non_exhaustive]pub struct SignerResult {
pub verified: bool,
pub subject: Option<String>,
pub error: Option<String>,
}Expand description
Result for a single SignerInfo within a SignedData.
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.verified: booltrue iff all of the following succeeded:
message-digest check, signature verification, and cert-chain validation.
subject: Option<String>Distinguished name of the signer’s certificate subject, if found.
error: Option<String>Human-readable error string when verified == false.
Trait Implementations§
Source§impl Clone for SignerResult
impl Clone for SignerResult
Source§fn clone(&self) -> SignerResult
fn clone(&self) -> SignerResult
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 SignerResult
impl Debug for SignerResult
Source§impl<'de> Deserialize<'de> for SignerResult
impl<'de> Deserialize<'de> for SignerResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SignerResult
Source§impl PartialEq for SignerResult
impl PartialEq for SignerResult
Source§fn eq(&self, other: &SignerResult) -> bool
fn eq(&self, other: &SignerResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignerResult
impl Serialize for SignerResult
impl StructuralPartialEq for SignerResult
Auto Trait Implementations§
impl Freeze for SignerResult
impl RefUnwindSafe for SignerResult
impl Send for SignerResult
impl Sync for SignerResult
impl Unpin for SignerResult
impl UnsafeUnpin for SignerResult
impl UnwindSafe for SignerResult
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