Enum x509_cert::anchor::TrustAnchorChoice
source · pub enum TrustAnchorChoice {
Certificate(Certificate),
TbsCertificate(TbsCertificate),
TaInfo(TrustAnchorInfo),
}
Expand description
TrustAnchorChoice ::= CHOICE {
certificate Certificate,
tbsCert [1] EXPLICIT TBSCertificate,
taInfo [2] EXPLICIT TrustAnchorInfo
}
Variants§
Trait Implementations§
source§impl<'__der_lifetime> Choice<'__der_lifetime> for TrustAnchorChoice
impl<'__der_lifetime> Choice<'__der_lifetime> for TrustAnchorChoice
source§impl Clone for TrustAnchorChoice
impl Clone for TrustAnchorChoice
source§fn clone(&self) -> TrustAnchorChoice
fn clone(&self) -> TrustAnchorChoice
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 TrustAnchorChoice
impl Debug for TrustAnchorChoice
source§impl<'__der_lifetime> Decode<'__der_lifetime> for TrustAnchorChoice
impl<'__der_lifetime> Decode<'__der_lifetime> for TrustAnchorChoice
source§impl EncodeValue for TrustAnchorChoice
impl EncodeValue for TrustAnchorChoice
source§impl PartialEq for TrustAnchorChoice
impl PartialEq for TrustAnchorChoice
source§fn eq(&self, other: &TrustAnchorChoice) -> bool
fn eq(&self, other: &TrustAnchorChoice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Tagged for TrustAnchorChoice
impl Tagged for TrustAnchorChoice
impl Eq for TrustAnchorChoice
impl StructuralEq for TrustAnchorChoice
impl StructuralPartialEq for TrustAnchorChoice
Auto Trait Implementations§
impl RefUnwindSafe for TrustAnchorChoice
impl Send for TrustAnchorChoice
impl Sync for TrustAnchorChoice
impl Unpin for TrustAnchorChoice
impl UnwindSafe for TrustAnchorChoice
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.