pub struct Certificate(/* private fields */);Expand description
An X509 certificate.
Implementations§
Source§impl Certificate
impl Certificate
Sourcepub fn from_der(der: &[u8]) -> Result<Certificate>
pub fn from_der(der: &[u8]) -> Result<Certificate>
Parses a DER-formatted X509 certificate.
Sourcepub fn from_pem(pem: &[u8]) -> Result<Certificate>
pub fn from_pem(pem: &[u8]) -> Result<Certificate>
Parses a PEM-formatted X509 certificate.
Sourcepub fn stack_from_pem(buf: &[u8]) -> Result<Vec<Certificate>>
pub fn stack_from_pem(buf: &[u8]) -> Result<Vec<Certificate>>
Parses some PEM-formatted X509 certificates.
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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