pub struct AutoTlsConfig {
pub enabled: bool,
pub domains: Vec<String>,
pub email: String,
pub challenge_type: String,
pub cache_dir: String,
pub renew_before_days: u32,
}Expand description
Auto TLS configuration
Fields§
§enabled: boolEnable auto TLS
domains: Vec<String>Domains for certificate
email: StringEmail for Let’s Encrypt registration
challenge_type: StringACME challenge type: “http-01” or “dns-01” (default: “http-01”)
cache_dir: StringCertificate cache directory (default: “./certs”)
renew_before_days: u32Days before expiration to renew (default: 30)
Trait Implementations§
Source§impl Clone for AutoTlsConfig
impl Clone for AutoTlsConfig
Source§fn clone(&self) -> AutoTlsConfig
fn clone(&self) -> AutoTlsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutoTlsConfig
impl Debug for AutoTlsConfig
Source§impl Default for AutoTlsConfig
impl Default for AutoTlsConfig
Source§impl<'de> Deserialize<'de> for AutoTlsConfig
impl<'de> Deserialize<'de> for AutoTlsConfig
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 PartialEq for AutoTlsConfig
impl PartialEq for AutoTlsConfig
Source§impl Serialize for AutoTlsConfig
impl Serialize for AutoTlsConfig
impl StructuralPartialEq for AutoTlsConfig
Auto Trait Implementations§
impl Freeze for AutoTlsConfig
impl RefUnwindSafe for AutoTlsConfig
impl Send for AutoTlsConfig
impl Sync for AutoTlsConfig
impl Unpin for AutoTlsConfig
impl UnsafeUnpin for AutoTlsConfig
impl UnwindSafe for AutoTlsConfig
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