pub struct TlsConfig {
pub enabled: bool,
pub verify_peer: bool,
pub ca_cert_path: Option<String>,
pub client_cert_path: Option<String>,
pub client_key_path: Option<String>,
pub insecure: bool,
}Expand description
TLS configuration for HTTP/HTTPS client connections.
Fields§
§enabled: boolEnables TLS customization for client connections.
verify_peer: boolVerifies peer certificates when true. Defaults to true.
ca_cert_path: Option<String>Optional path to custom CA certificate bundle (PEM or DER).
client_cert_path: Option<String>Optional path to client certificate for mTLS (PEM).
client_key_path: Option<String>Optional path to client private key for mTLS (PEM).
insecure: boolIf true, skips certificate verification (discouraged).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TlsConfig
impl<'de> Deserialize<'de> for TlsConfig
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
impl StructuralPartialEq for TlsConfig
Auto Trait Implementations§
impl Freeze for TlsConfig
impl RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnsafeUnpin for TlsConfig
impl UnwindSafe for TlsConfig
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