pub struct TlsConfig {
pub insecure: bool,
pub cacert_pem: Option<String>,
pub cacert_file: Option<String>,
pub cert_pem: Option<String>,
pub cert_file: Option<String>,
pub key_pem_secret: Option<String>,
pub key_file: Option<String>,
}Expand description
Stored TLS configuration (full, non-partial). Inline PEM fields (*_pem) take
precedence over file-path fields (*_file).
Fields§
§insecure: bool§cacert_pem: Option<String>Inline CA certificate as PEM text
cacert_file: Option<String>Path to CA certificate file (PEM)
cert_pem: Option<String>Inline client certificate as PEM text
cert_file: Option<String>Path to client certificate file (PEM)
key_pem_secret: Option<String>Inline client private key as PEM text (unencrypted). Redacted in config echo.
key_file: Option<String>Path to client private key file (PEM, unencrypted)
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
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