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 duplicate 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§impl Tagged for CertificateChoices
impl Tagged for CertificateChoices
Source§impl ValueOrd for CertificateChoices
impl ValueOrd for CertificateChoices
impl Eq for CertificateChoices
impl StructuralPartialEq for CertificateChoices
Auto Trait Implementations§
impl Freeze for CertificateChoices
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.