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: TbsCertificate
§signature_algorithm: AlgorithmIdentifier
§signature: BitString
Implementations§
Source§impl Certificate
impl Certificate
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S>, ) -> Result<Self, DecodeError<S::Error>>
pub fn from_sequence<S: Source>( cons: &mut Constructed<'_, S>, ) -> Result<Self, DecodeError<S::Error>>
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§
Source§impl AsMut<Certificate> for X509Certificate
impl AsMut<Certificate> for X509Certificate
Source§fn as_mut(&mut self) -> &mut Certificate
fn as_mut(&mut self) -> &mut Certificate
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<Certificate> for CapturedX509Certificate
impl AsRef<Certificate> for CapturedX509Certificate
Source§fn as_ref(&self) -> &Certificate
fn as_ref(&self) -> &Certificate
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<Certificate> for X509Certificate
impl AsRef<Certificate> for X509Certificate
Source§fn as_ref(&self) -> &Certificate
fn as_ref(&self) -> &Certificate
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
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 Certificate
impl Debug for Certificate
Source§impl From<CapturedX509Certificate> for Certificate
impl From<CapturedX509Certificate> for Certificate
Source§fn from(cert: CapturedX509Certificate) -> Self
fn from(cert: CapturedX509Certificate) -> Self
Converts to this type from the input type.
Source§impl From<Certificate> for X509Certificate
impl From<Certificate> for X509Certificate
Source§fn from(v: Certificate) -> Self
fn from(v: Certificate) -> Self
Converts to this type from the input type.
Source§impl From<X509Certificate> for Certificate
impl From<X509Certificate> for Certificate
Source§fn from(v: X509Certificate) -> Self
fn from(v: X509Certificate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Certificate
impl PartialEq for Certificate
impl Eq for Certificate
impl StructuralPartialEq for Certificate
Auto Trait Implementations§
impl !Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)