Struct reqwest::tls::Certificate [−][src]
pub struct Certificate { /* fields omitted */ }
This is supported on non-WebAssembly and crate feature
__tls
only.Expand description
Represents a server X509 certificate.
Implementations
Create a Certificate
from a binary DER encoded certificate
Examples
let mut buf = Vec::new();
File::open("my_cert.der")?
.read_to_end(&mut buf)?;
let cert = reqwest::Certificate::from_der(&buf)?;
Trait Implementations
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more