pub struct ModernTlsConfig {
pub enabled: bool,
pub mutual_tls: bool,
pub server_cert_path: String,
pub server_key_path: String,
pub client_cert_path: Option<String>,
pub client_key_path: Option<String>,
pub ca_cert_path: Option<String>,
pub cert_validation: CertValidationConfig,
pub cert_rotation: CertRotationConfig,
}Expand description
Modern TLS configuration for Rustls 0.23
Fields§
§enabled: boolEnable TLS encryption
mutual_tls: boolEnable mutual TLS (client certificate verification)
server_cert_path: StringPath to server certificate file
server_key_path: StringPath to server private key file
client_cert_path: Option<String>Path to client certificate file (for mutual TLS)
client_key_path: Option<String>Path to client private key file (for mutual TLS)
ca_cert_path: Option<String>Path to CA certificate file
cert_validation: CertValidationConfigCertificate validation configuration
cert_rotation: CertRotationConfigCertificate rotation configuration
Trait Implementations§
Source§impl Clone for ModernTlsConfig
impl Clone for ModernTlsConfig
Source§fn clone(&self) -> ModernTlsConfig
fn clone(&self) -> ModernTlsConfig
Returns a duplicate 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 ModernTlsConfig
impl Debug for ModernTlsConfig
Source§impl Default for ModernTlsConfig
impl Default for ModernTlsConfig
Source§impl<'de> Deserialize<'de> for ModernTlsConfig
impl<'de> Deserialize<'de> for ModernTlsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModernTlsConfig
impl RefUnwindSafe for ModernTlsConfig
impl Send for ModernTlsConfig
impl Sync for ModernTlsConfig
impl Unpin for ModernTlsConfig
impl UnwindSafe for ModernTlsConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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