pub struct TlsConfig {
pub cert_path: Option<String>,
pub key_path: Option<String>,
}Expand description
TLS configuration with paired cert/key validation.
Both cert_path and key_path must be set together (or both unset).
When set, the files must exist on disk.
§Example
use fabryk_cli::config_sections::TlsConfig;
let tls = TlsConfig::default();
assert!(!tls.enabled());Fields§
§cert_path: Option<String>Path to TLS certificate PEM file. When set with key_path, enables HTTPS.
key_path: Option<String>Path to TLS private key PEM file. When set with cert_path, enables HTTPS.
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
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