pub struct StrictTransportSecurity { /* private fields */ }
Expand description
Inform browsers that the site should only be accessed using HTTPS.
§Specifications
Implementations§
Source§impl StrictTransportSecurity
impl StrictTransportSecurity
Sourcepub fn include_subdomains(&self) -> bool
pub fn include_subdomains(&self) -> bool
Get a reference to the strict transport security’s include subdomains.
Sourcepub fn set_include_subdomains(&mut self, include_subdomains: bool)
pub fn set_include_subdomains(&mut self, include_subdomains: bool)
Set the strict transport security’s include subdomains.
Sourcepub fn set_preload(&mut self, preload: bool)
pub fn set_preload(&mut self, preload: bool)
Set the strict transport security’s preload.
Sourcepub fn set_max_age(&mut self, duration: Duration)
pub fn set_max_age(&mut self, duration: Duration)
Set the strict transport security’s max_age.
Trait Implementations§
Source§impl Debug for StrictTransportSecurity
impl Debug for StrictTransportSecurity
Source§impl Default for StrictTransportSecurity
impl Default for StrictTransportSecurity
Source§impl From<Duration> for StrictTransportSecurity
impl From<Duration> for StrictTransportSecurity
Source§impl From<StrictTransportSecurity> for Duration
impl From<StrictTransportSecurity> for Duration
Source§fn from(stc: StrictTransportSecurity) -> Self
fn from(stc: StrictTransportSecurity) -> Self
Converts to this type from the input type.
Source§impl Header for StrictTransportSecurity
impl Header for StrictTransportSecurity
Source§fn header_name(&self) -> HeaderName
fn header_name(&self) -> HeaderName
Access the header’s name.
Source§fn header_value(&self) -> HeaderValue
fn header_value(&self) -> HeaderValue
Access the header’s value.
Auto Trait Implementations§
impl Freeze for StrictTransportSecurity
impl RefUnwindSafe for StrictTransportSecurity
impl Send for StrictTransportSecurity
impl Sync for StrictTransportSecurity
impl Unpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToHeaderValues for Twhere
T: Header,
impl<T> ToHeaderValues for Twhere
T: Header,
Source§type Iter = IntoIter<HeaderValue>
type Iter = IntoIter<HeaderValue>
Returned iterator over header values which this type may correspond to.
Source§fn to_header_values(&self) -> Result<<T as ToHeaderValues>::Iter, Error>
fn to_header_values(&self) -> Result<<T as ToHeaderValues>::Iter, Error>
Converts this object to an iterator of resolved
HeaderValues
.