pub struct HstsConfig {
pub max_age: u32,
pub include_subdomains: bool,
pub preload: bool,
}Expand description
HTTP Strict Transport Security (HSTS) configuration
Fields§
§max_age: u32Maximum age in seconds
include_subdomains: boolInclude subdomains
preload: boolPreload directive
Trait Implementations§
Source§impl Clone for HstsConfig
impl Clone for HstsConfig
Source§fn clone(&self) -> HstsConfig
fn clone(&self) -> HstsConfig
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 HstsConfig
impl Debug for HstsConfig
Source§impl Default for HstsConfig
impl Default for HstsConfig
Source§impl<'de> Deserialize<'de> for HstsConfig
impl<'de> Deserialize<'de> for HstsConfig
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 HstsConfig
impl RefUnwindSafe for HstsConfig
impl Send for HstsConfig
impl Sync for HstsConfig
impl Unpin for HstsConfig
impl UnwindSafe for HstsConfig
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