pub struct TlsConfig {
pub enabled: bool,
pub ca_file: Option<PathBuf>,
pub crt_file: Option<PathBuf>,
pub key_file: Option<PathBuf>,
pub insecure_skip_verify: bool,
}Expand description
Standard TLS configuration options available to any component that opens network connections or binds to a port.
Fields§
§enabled: boolWhether TLS is enabled.
ca_file: Option<PathBuf>Path to a PEM-encoded CA certificate file to use for verifying peers.
crt_file: Option<PathBuf>Path to a PEM-encoded certificate file for mutual TLS.
key_file: Option<PathBuf>Path to a PEM-encoded private key file for mutual TLS.
insecure_skip_verify: boolWhether to skip certificate verification. Insecure — use only for testing.
Implementations§
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
Source§impl HasFieldsMetadata for TlsConfig
impl HasFieldsMetadata for TlsConfig
Source§fn fields_metadata() -> Vec<FieldMetadata>
fn fields_metadata() -> Vec<FieldMetadata>
Returns a list of metadata for all fields in the struct.
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