Struct wick_config::v0::HttpConfig
source · pub struct HttpConfig {
pub enabled: bool,
pub port: Option<u16>,
pub address: Option<String>,
pub pem: Option<String>,
pub key: Option<String>,
pub ca: Option<String>,
}Expand description
Configuration for HTTP/S servers.
Fields§
§enabled: boolEnable/disable the server.
port: Option<u16>The port to bind to.
address: Option<String>The address to bind to.
pem: Option<String>Path to pem file for TLS.
key: Option<String>Path to key file for TLS.
ca: Option<String>Path to CA file.
Trait Implementations§
source§impl Clone for HttpConfig
impl Clone for HttpConfig
source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
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 HttpConfig
impl Debug for HttpConfig
source§impl Default for HttpConfig
impl Default for HttpConfig
source§fn default() -> HttpConfig
fn default() -> HttpConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpConfig
impl<'de> Deserialize<'de> for HttpConfig
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<HttpConfig> for HttpConfig
impl PartialEq<HttpConfig> for HttpConfig
source§fn eq(&self, other: &HttpConfig) -> bool
fn eq(&self, other: &HttpConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for HttpConfig
impl Serialize for HttpConfig
source§impl TryFrom<HttpConfig> for HttpConfig
impl TryFrom<HttpConfig> for HttpConfig
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for HttpConfig
Auto Trait Implementations§
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnwindSafe for HttpConfig
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