pub struct Certificate { /* private fields */ }
Expand description
An issued certificate
Implementations§
Source§impl Certificate
impl Certificate
Sourcepub fn der(&self) -> &CertificateDer<'static>
pub fn der(&self) -> &CertificateDer<'static>
Get the certificate in DER encoded format.
CertificateDer
implements Deref<Target = [u8]>
and AsRef<[u8]>
, so you can easily
extract the DER bytes from the return value.
Trait Implementations§
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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<Certificate> for CertificateDer<'static>
impl From<Certificate> for CertificateDer<'static>
Source§fn from(cert: Certificate) -> Self
fn from(cert: Certificate) -> 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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