Struct x509_cert::certificate::CertificateInner
source · pub struct CertificateInner<P: Profile = Rfc5280> {
pub tbs_certificate: TbsCertificateInner<P>,
pub signature_algorithm: AlgorithmIdentifierOwned,
pub signature: BitString,
}
Expand description
X.509 certificates are defined in RFC 5280 Section 4.1.
Certificate ::= SEQUENCE {
tbsCertificate TBSCertificate,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING
}
Fields§
§tbs_certificate: TbsCertificateInner<P>
§signature_algorithm: AlgorithmIdentifierOwned
§signature: BitString
Implementations§
source§impl<P: Profile> CertificateInner<P>
impl<P: Profile> CertificateInner<P>
Trait Implementations§
source§impl<'arbitrary, P: Profile + Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for CertificateInner<P>
impl<'arbitrary, P: Profile + Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for CertificateInner<P>
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<P: Clone + Profile> Clone for CertificateInner<P>
impl<P: Clone + Profile> Clone for CertificateInner<P>
source§fn clone(&self) -> CertificateInner<P>
fn clone(&self) -> CertificateInner<P>
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<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for CertificateInner<P>
impl<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for CertificateInner<P>
source§impl<'__der_lifetime, P: Profile> EncodeValue for CertificateInner<P>
impl<'__der_lifetime, P: Profile> EncodeValue for CertificateInner<P>
source§impl<P: PartialEq + Profile> PartialEq for CertificateInner<P>
impl<P: PartialEq + Profile> PartialEq for CertificateInner<P>
source§fn eq(&self, other: &CertificateInner<P>) -> bool
fn eq(&self, other: &CertificateInner<P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<P: Profile> PemLabel for CertificateInner<P>
Available on crate feature pem
only.
impl<P: Profile> PemLabel for CertificateInner<P>
Available on crate feature
pem
only.source§impl ValueOrd for CertificateInner
impl ValueOrd for CertificateInner
impl<P: Eq + Profile> Eq for CertificateInner<P>
impl<'__der_lifetime, P: Profile> Sequence<'__der_lifetime> for CertificateInner<P>
impl<P: Profile> StructuralEq for CertificateInner<P>
impl<P: Profile> StructuralPartialEq for CertificateInner<P>
Auto Trait Implementations§
impl<P> RefUnwindSafe for CertificateInner<P>where
P: RefUnwindSafe,
impl<P> Send for CertificateInner<P>where
P: Send,
impl<P> Sync for CertificateInner<P>where
P: Sync,
impl<P> Unpin for CertificateInner<P>where
P: Unpin,
impl<P> UnwindSafe for CertificateInner<P>where
P: UnwindSafe,
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> DecodePem for Twhere
T: DecodeOwned + PemLabel,
impl<T> DecodePem for Twhere
T: DecodeOwned + PemLabel,
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.