pub struct TlsConfig {
pub cert: Option<Box<str>>,
pub key: Option<Box<str>>,
pub auto: Option<bool>,
pub email: Option<Box<str>>,
pub staging: Option<bool>,
pub cache_dir: Option<Box<str>>,
pub dns_provider: Option<Box<str>>,
pub dns_api_token_env: Option<Box<str>>,
pub dns_api_token_file: Option<Box<str>>,
}Expand description
Shared TLS configuration parsed from TOML. Used by all suspension-stack tools (Camber, Kingpin, Damper).
Fields§
§cert: Option<Box<str>>§key: Option<Box<str>>§auto: Option<bool>§email: Option<Box<str>>§staging: Option<bool>§cache_dir: Option<Box<str>>§dns_provider: Option<Box<str>>§dns_api_token_env: Option<Box<str>>§dns_api_token_file: Option<Box<str>>Implementations§
Source§impl TlsConfig
impl TlsConfig
pub fn validate(&self) -> Result<(), RuntimeError>
pub fn auto(&self) -> bool
pub fn email(&self) -> Option<&str>
pub fn staging(&self) -> bool
pub fn cert(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
pub fn cache_dir(&self) -> Option<&str>
pub fn dns_provider(&self) -> Option<&str>
pub fn dns_api_token_env(&self) -> Option<&str>
pub fn dns_api_token_file(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TlsConfig
impl<'de> Deserialize<'de> for TlsConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TlsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TlsConfig, <__D as Deserializer<'de>>::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<'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<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