[][src]Enum chttp::config::ClientCertificate

pub enum ClientCertificate {
    PEM {
        path: PathBuf,
        private_key: Option<PrivateKey>,
    },
    DER {
        path: PathBuf,
        private_key: Option<PrivateKey>,
    },
    P12 {
        path: PathBuf,
        password: Option<String>,
    },
}

A public key certificate file.

Variants

PEM

A PEM-encoded certificate file.

Fields of PEM

path: PathBuf

Path to the certificate file.

private_key: Option<PrivateKey>

Private key corresponding to the SSL/TLS certificate.

DER

A DER-encoded certificate file.

Fields of DER

path: PathBuf

Path to the certificate file.

private_key: Option<PrivateKey>

Private key corresponding to the SSL/TLS certificate.

P12

A PKCS#12-encoded certificate file.

Fields of P12

path: PathBuf

Path to the certificate file.

password: Option<String>

Password to decrypt the certificate file.

Trait Implementations

impl Clone for ClientCertificate[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<ClientCertificate> for ClientCertificate[src]

impl Eq for ClientCertificate[src]

impl Debug for ClientCertificate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]