Struct x509_certificate::rfc5280::Certificate
source · [−]pub struct Certificate {
pub tbs_certificate: TbsCertificate,
pub signature_algorithm: AlgorithmIdentifier,
pub signature: BitString,
}Expand description
An X.509 certificate.
This is the main data structure representing an X.509 certificate.
Certificate ::= SEQUENCE {
tbsCertificate TBSCertificate,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING }Fields
tbs_certificate: TbsCertificatesignature_algorithm: AlgorithmIdentifiersignature: BitStringImplementations
sourceimpl Certificate
impl Certificate
pub fn take_from<S: Source>(
cons: &mut Constructed<'_, S>
) -> Result<Self, S::Err>
pub fn from_sequence<S: Source>(
cons: &mut Constructed<'_, S>
) -> Result<Self, S::Err>
pub fn encode_ref(&self) -> impl Values + '_
sourcepub fn iter_extensions(&self) -> impl Iterator<Item = &Extension>
pub fn iter_extensions(&self) -> impl Iterator<Item = &Extension>
Iterate over extensions defined on this certificate.
Trait Implementations
sourceimpl AsMut<Certificate> for X509Certificate
impl AsMut<Certificate> for X509Certificate
sourcefn as_mut(&mut self) -> &mut Certificate
fn as_mut(&mut self) -> &mut Certificate
Performs the conversion.
sourceimpl AsRef<Certificate> for X509Certificate
impl AsRef<Certificate> for X509Certificate
sourcefn as_ref(&self) -> &Certificate
fn as_ref(&self) -> &Certificate
Performs the conversion.
sourceimpl AsRef<Certificate> for CapturedX509Certificate
impl AsRef<Certificate> for CapturedX509Certificate
sourcefn as_ref(&self) -> &Certificate
fn as_ref(&self) -> &Certificate
Performs the conversion.
sourceimpl Clone for Certificate
impl Clone for Certificate
sourcefn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Certificate
impl Debug for Certificate
sourceimpl From<CapturedX509Certificate> for Certificate
impl From<CapturedX509Certificate> for Certificate
sourcefn from(cert: CapturedX509Certificate) -> Self
fn from(cert: CapturedX509Certificate) -> Self
Performs the conversion.
sourceimpl From<Certificate> for X509Certificate
impl From<Certificate> for X509Certificate
sourcefn from(v: Certificate) -> Self
fn from(v: Certificate) -> Self
Performs the conversion.
sourceimpl From<X509Certificate> for Certificate
impl From<X509Certificate> for Certificate
sourcefn from(v: X509Certificate) -> Self
fn from(v: X509Certificate) -> Self
Performs the conversion.
sourceimpl PartialEq<Certificate> for Certificate
impl PartialEq<Certificate> for Certificate
sourcefn eq(&self, other: &Certificate) -> bool
fn eq(&self, other: &Certificate) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Certificate) -> bool
fn ne(&self, other: &Certificate) -> bool
This method tests for !=.
impl Eq for Certificate
impl StructuralEq for Certificate
impl StructuralPartialEq for Certificate
Auto Trait Implementations
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more