Struct iroh_dns_server::http::HttpsConfig
source · pub struct HttpsConfig {
pub port: u16,
pub bind_addr: Option<IpAddr>,
pub domains: Vec<String>,
pub cert_mode: CertMode,
pub letsencrypt_contact: Option<String>,
pub letsencrypt_prod: Option<bool>,
}
Expand description
Config for the HTTPS server
Fields§
§port: u16
Port to bind to
bind_addr: Option<IpAddr>
Optionally set a custom bind address (will use 0.0.0.0 if unset)
domains: Vec<String>
The list of domains for which SSL certificates should be created.
cert_mode: CertMode
The mode of SSL certificate creation
letsencrypt_contact: Option<String>
Letsencrypt contact email address (required if using CertMode::LetsEncrypt
)
letsencrypt_prod: Option<bool>
Whether to use the letsenrypt production servers (only applies to CertMode::LetsEncrypt
)
Trait Implementations§
source§impl Clone for HttpsConfig
impl Clone for HttpsConfig
source§fn clone(&self) -> HttpsConfig
fn clone(&self) -> HttpsConfig
Returns a copy 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 HttpsConfig
impl Debug for HttpsConfig
source§impl<'de> Deserialize<'de> for HttpsConfig
impl<'de> Deserialize<'de> for HttpsConfig
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 HttpsConfig
impl RefUnwindSafe for HttpsConfig
impl Send for HttpsConfig
impl Sync for HttpsConfig
impl Unpin for HttpsConfig
impl UnwindSafe for HttpsConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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