Struct cms::signed_data::CertificateSet
source · pub struct CertificateSet(pub SetOfVec<CertificateChoices>);
Expand description
CertificateSet structure as defined in RFC 5652 Section 10.2.3.
CertificateSet ::= SET OF CertificateChoices
Tuple Fields§
§0: SetOfVec<CertificateChoices>
Trait Implementations§
source§impl<'a> AsMut<SetOfVec<CertificateChoices>> for CertificateSet
impl<'a> AsMut<SetOfVec<CertificateChoices>> for CertificateSet
source§fn as_mut(&mut self) -> &mut SetOfVec<CertificateChoices>
fn as_mut(&mut self) -> &mut SetOfVec<CertificateChoices>
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'a> AsRef<SetOfVec<CertificateChoices>> for CertificateSet
impl<'a> AsRef<SetOfVec<CertificateChoices>> for CertificateSet
source§fn as_ref(&self) -> &SetOfVec<CertificateChoices>
fn as_ref(&self) -> &SetOfVec<CertificateChoices>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for CertificateSet
impl Clone for CertificateSet
source§fn clone(&self) -> CertificateSet
fn clone(&self) -> CertificateSet
Returns a copy of the value. Read more
1.0.0 · 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 CertificateSet
impl Debug for CertificateSet
source§impl<'a> DecodeValue<'a> for CertificateSet
impl<'a> DecodeValue<'a> for CertificateSet
source§impl<'a> EncodeValue for CertificateSet
impl<'a> EncodeValue for CertificateSet
source§impl<'a> FixedTag for CertificateSet
impl<'a> FixedTag for CertificateSet
source§impl<'a> From<CertificateSet> for SetOfVec<CertificateChoices>
impl<'a> From<CertificateSet> for SetOfVec<CertificateChoices>
source§fn from(value: CertificateSet) -> Self
fn from(value: CertificateSet) -> Self
Converts to this type from the input type.
source§impl<'a> From<SetOfVec<CertificateChoices>> for CertificateSet
impl<'a> From<SetOfVec<CertificateChoices>> for CertificateSet
source§fn from(value: SetOfVec<CertificateChoices>) -> Self
fn from(value: SetOfVec<CertificateChoices>) -> Self
Converts to this type from the input type.
source§impl PartialEq for CertificateSet
impl PartialEq for CertificateSet
source§fn eq(&self, other: &CertificateSet) -> bool
fn eq(&self, other: &CertificateSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Vec<CertificateChoices>> for CertificateSet
Available on crate feature std
only.
impl TryFrom<Vec<CertificateChoices>> for CertificateSet
Available on crate feature
std
only.source§fn try_from(vec: Vec<CertificateChoices>) -> Result<CertificateSet>
fn try_from(vec: Vec<CertificateChoices>) -> Result<CertificateSet>
Performs the conversion.
source§impl<'a> ValueOrd for CertificateSet
impl<'a> ValueOrd for CertificateSet
impl Eq for CertificateSet
impl StructuralEq for CertificateSet
impl StructuralPartialEq for CertificateSet
Auto Trait Implementations§
impl RefUnwindSafe for CertificateSet
impl Send for CertificateSet
impl Sync for CertificateSet
impl Unpin for CertificateSet
impl UnwindSafe for CertificateSet
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
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.