pub enum CertificateChoice<'a> {
X509(usize),
Extended(Element<'a>),
AttributeV1(Element<'a>),
AttributeV2(Element<'a>),
Other(Element<'a>),
}Expand description
One original certificate CHOICE (RFC5652 §10.2.2).
X.509 values live in one flat accounted catalogue, avoiding one Box allocation per certificate and avoiding a large enum slot for opaque kinds.
Variants§
X509(usize)
Index into this message’s SignedData::certificates catalogue.
Extended(Element<'a>)
Obsolete PKCS6 extended certificate, preserved without interpreting it.
AttributeV1(Element<'a>)
Obsolete version-1 attribute certificate, preserved as encoded.
AttributeV2(Element<'a>)
Version-2 attribute certificate, preserved as encoded.
Other(Element<'a>)
Other format with its original format identifier and value.
Trait Implementations§
Source§impl<'a> Clone for CertificateChoice<'a>
impl<'a> Clone for CertificateChoice<'a>
impl<'a> Copy for CertificateChoice<'a>
Auto Trait Implementations§
impl<'a> Freeze for CertificateChoice<'a>
impl<'a> RefUnwindSafe for CertificateChoice<'a>
impl<'a> Send for CertificateChoice<'a>
impl<'a> Sync for CertificateChoice<'a>
impl<'a> Unpin for CertificateChoice<'a>
impl<'a> UnsafeUnpin for CertificateChoice<'a>
impl<'a> UnwindSafe for CertificateChoice<'a>
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