pub struct HstsConfig {
pub max_age: Option<u64>,
pub include_subdomains: bool,
pub preload: bool,
}Expand description
The reference security_headers["hsts"] block: max_age,
include_subdomains, preload.
max_age: None means no Strict-Transport-Security header, exactly
like the reference hsts_config = None when max_age is absent.
Fields§
§max_age: Option<u64>§include_subdomains: bool§preload: boolTrait Implementations§
Source§impl Clone for HstsConfig
impl Clone for HstsConfig
Source§impl Debug for HstsConfig
impl Debug for HstsConfig
Source§impl Default for HstsConfig
impl Default for HstsConfig
impl Eq for HstsConfig
Source§impl PartialEq for HstsConfig
impl PartialEq for HstsConfig
impl StructuralPartialEq for HstsConfig
Auto Trait Implementations§
impl Freeze for HstsConfig
impl RefUnwindSafe for HstsConfig
impl Send for HstsConfig
impl Sync for HstsConfig
impl Unpin for HstsConfig
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.