pub struct StrictTransportSecurity {
pub override_upstream: bool,
pub include_subdomains: bool,
pub preload: bool,
pub access_control_max_age_sec: i64,
}Expand description
Strict-Transport-Security.
Fields§
§override_upstream: boolWhether to override upstream.
include_subdomains: boolincludeSubDomains directive.
preload: boolpreload directive.
access_control_max_age_sec: i64Max-age seconds.
Trait Implementations§
Source§impl Clone for StrictTransportSecurity
impl Clone for StrictTransportSecurity
Source§fn clone(&self) -> StrictTransportSecurity
fn clone(&self) -> StrictTransportSecurity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StrictTransportSecurity
impl Debug for StrictTransportSecurity
Source§impl Default for StrictTransportSecurity
impl Default for StrictTransportSecurity
Source§fn default() -> StrictTransportSecurity
fn default() -> StrictTransportSecurity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StrictTransportSecurity
impl<'de> Deserialize<'de> for StrictTransportSecurity
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 StrictTransportSecurity
impl RefUnwindSafe for StrictTransportSecurity
impl Send for StrictTransportSecurity
impl Sync for StrictTransportSecurity
impl Unpin for StrictTransportSecurity
impl UnsafeUnpin for StrictTransportSecurity
impl UnwindSafe for StrictTransportSecurity
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