Struct redis::TlsCertificates
source · pub struct TlsCertificates {
pub client_tls: Option<ClientTlsConfig>,
pub root_cert: Option<Vec<u8>>,
}
Expand description
Structure to hold TLS certificates
client_tls
: binaries of clientkey and certificate within aClientTlsConfig
structure if mTLS is usedroot_cert
: binary CA certificate in PEM format if CA is not in local truststore
Fields§
§client_tls: Option<ClientTlsConfig>
‘ClientTlsConfig’ containing client certificate and key if mTLS is to be used
root_cert: Option<Vec<u8>>
root certificate byte stream in PEM format if the local truststore is not to be used
Trait Implementations§
source§impl Clone for TlsCertificates
impl Clone for TlsCertificates
source§fn clone(&self) -> TlsCertificates
fn clone(&self) -> TlsCertificates
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 moreAuto Trait Implementations§
impl RefUnwindSafe for TlsCertificates
impl Send for TlsCertificates
impl Sync for TlsCertificates
impl Unpin for TlsCertificates
impl UnwindSafe for TlsCertificates
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