pub enum ClientCertificate {
Pkcs12(Vec<u8>, Option<String>),
Pem(Vec<u8>),
}
Variants§
Pkcs12(Vec<u8>, Option<String>)
Bytes of a DER-formatted PKCS#12 archive and optional passphrase.
The archive should contain a leaf certificate and its private key, as well any intermediate certificates that allow clients to build a chain to a trusted root. The chain certificates should be in order from the leaf certificate towards the root.
§Optional
This requires the native-tls
feature to be enabled.
Pem(Vec<u8>)
Bytes of a PEM encoded private key and at least one PEM encoded certificate.
§Optional
This requires the rustls-tls
feature to be enabled.
Trait Implementations§
Source§impl Clone for ClientCertificate
impl Clone for ClientCertificate
Source§fn clone(&self) -> ClientCertificate
fn clone(&self) -> ClientCertificate
Returns a copy 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 moreSource§impl Debug for ClientCertificate
impl Debug for ClientCertificate
Source§impl From<ClientCertificate> for Credentials
impl From<ClientCertificate> for Credentials
Source§fn from(cert: ClientCertificate) -> Self
fn from(cert: ClientCertificate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientCertificate
impl RefUnwindSafe for ClientCertificate
impl Send for ClientCertificate
impl Sync for ClientCertificate
impl Unpin for ClientCertificate
impl UnwindSafe for ClientCertificate
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