Struct reqwest::Certificate [−][src]
pub struct Certificate { /* fields omitted */ }
Represents a server X509 certificate.
Implementations
impl Certificate
[src]
impl Certificate
[src]pub fn from_der(der: &[u8]) -> Result<Certificate>
[src]
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)?;
pub fn from_pem(pem: &[u8]) -> Result<Certificate>
[src]
Create a Certificate
from a PEM encoded certificate
Examples
let mut buf = Vec::new(); File::open("my_cert.pem")? .read_to_end(&mut buf)?; let cert = reqwest::Certificate::from_pem(&buf)?;
Trait Implementations
impl Clone for Certificate
[src]
impl Clone for Certificate
[src]fn clone(&self) -> Certificate
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
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
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]