#[non_exhaustive]pub struct AcmeFileConfig {
pub accept_tos: bool,
pub email: Option<String>,
pub directory: Option<String>,
pub staging: bool,
pub host_whitelist: Option<Vec<String>>,
pub default_host: Option<String>,
pub cert_dir: Option<PathBuf>,
}Expand description
Automatic-certificate (ACME) settings.
Build one from AcmeFileConfig::default and assign the fields you care
about; the struct is #[non_exhaustive] so that adding a setting later is
not a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accept_tos: boolMust be true to enable automatic issuance (accepts the CA’s ToS).
email: Option<String>Account contact email (optional).
directory: Option<String>ACME directory URL (defaults to Let’s Encrypt production).
staging: boolUse the Let’s Encrypt staging environment.
host_whitelist: Option<Vec<String>>Only issue for these host names, if set.
default_host: Option<String>Host to serve when a connection sends no SNI (bare-IP / SNI-less clients).
cert_dir: Option<PathBuf>Override the certificate storage directory.
Trait Implementations§
Source§impl Clone for AcmeFileConfig
impl Clone for AcmeFileConfig
Source§impl Debug for AcmeFileConfig
impl Debug for AcmeFileConfig
Source§impl Default for AcmeFileConfig
impl Default for AcmeFileConfig
Source§impl<'de> Deserialize<'de> for AcmeFileConfig
impl<'de> Deserialize<'de> for AcmeFileConfig
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 AcmeFileConfig
impl RefUnwindSafe for AcmeFileConfig
impl Send for AcmeFileConfig
impl Sync for AcmeFileConfig
impl Unpin for AcmeFileConfig
impl UnsafeUnpin for AcmeFileConfig
impl UnwindSafe for AcmeFileConfig
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