pub struct SignerInfo {
pub version: u32,
pub sid: SignerIdentifier,
pub digest_algorithm: AlgorithmIdentifier,
pub signed_attrs: Vec<Attribute>,
pub signature_algorithm: AlgorithmIdentifier,
pub signature: Vec<u8>,
pub unsigned_attrs: Vec<Attribute>,
}Expand description
Signer information per RFC 5652 §5.3.
Fields§
§version: u32CMS version (typically 1).
sid: SignerIdentifierSigner identifier (typically issuerAndSerialNumber or subjectKeyIdentifier).
digest_algorithm: AlgorithmIdentifierDigest algorithm used.
signed_attrs: Vec<Attribute>Signed attributes (optional).
signature_algorithm: AlgorithmIdentifierSignature algorithm.
signature: Vec<u8>The signature bytes.
unsigned_attrs: Vec<Attribute>Unsigned attributes (optional).
Trait Implementations§
Source§impl Clone for SignerInfo
impl Clone for SignerInfo
Source§fn clone(&self) -> SignerInfo
fn clone(&self) -> SignerInfo
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 SignerInfo
impl Debug for SignerInfo
Source§impl<'de> Deserialize<'de> for SignerInfo
impl<'de> Deserialize<'de> for SignerInfo
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
Auto Trait Implementations§
impl Freeze for SignerInfo
impl RefUnwindSafe for SignerInfo
impl Send for SignerInfo
impl Sync for SignerInfo
impl Unpin for SignerInfo
impl UnsafeUnpin for SignerInfo
impl UnwindSafe for SignerInfo
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