Enum cms::cert::CertificateChoices
source · pub enum CertificateChoices {
Certificate(Certificate),
Other(OtherCertificateFormat),
}
Expand description
The CertificateChoices
type is defined in RFC 5652 Section 10.2.2. Attribute certificate
support is not presently implemented.
CertificateChoices ::= CHOICE {
certificate Certificate,
extendedCertificate [0] IMPLICIT ExtendedCertificate,
-- Obsolete
...,
-- [[3: v1AttrCert [1] IMPLICIT AttributeCertificateV1]],
-- Obsolete
-- [[4: v2AttrCert [2] IMPLICIT AttributeCertificateV2]],
[[5: other [3] IMPLICIT OtherCertificateFormat]] }
Variants§
Certificate(Certificate)
Other(OtherCertificateFormat)
Trait Implementations§
source§impl<'__der_lifetime> Choice<'__der_lifetime> for CertificateChoices
impl<'__der_lifetime> Choice<'__der_lifetime> for CertificateChoices
source§impl Clone for CertificateChoices
impl Clone for CertificateChoices
source§fn clone(&self) -> CertificateChoices
fn clone(&self) -> CertificateChoices
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 CertificateChoices
impl Debug for CertificateChoices
source§impl<'__der_lifetime> Decode<'__der_lifetime> for CertificateChoices
impl<'__der_lifetime> Decode<'__der_lifetime> for CertificateChoices
source§impl EncodeValue for CertificateChoices
impl EncodeValue for CertificateChoices
source§impl PartialEq for CertificateChoices
impl PartialEq for CertificateChoices
source§fn eq(&self, other: &CertificateChoices) -> bool
fn eq(&self, other: &CertificateChoices) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Tagged for CertificateChoices
impl Tagged for CertificateChoices
source§impl ValueOrd for CertificateChoices
impl ValueOrd for CertificateChoices
impl Eq for CertificateChoices
impl StructuralEq for CertificateChoices
impl StructuralPartialEq for CertificateChoices
Auto Trait Implementations§
impl RefUnwindSafe for CertificateChoices
impl Send for CertificateChoices
impl Sync for CertificateChoices
impl Unpin for CertificateChoices
impl UnwindSafe for CertificateChoices
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<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.