pub struct SecurityHeadersConfig {
pub enabled: bool,
pub hsts: String,
pub frame_options: String,
pub content_type_options: String,
pub referrer_policy: String,
pub permissions_policy: String,
pub content_security_policy: Option<String>,
}Fields§
§enabled: bool§hsts: String§frame_options: String§content_type_options: String§referrer_policy: String§permissions_policy: String§content_security_policy: Option<String>Trait Implementations§
Source§impl Clone for SecurityHeadersConfig
impl Clone for SecurityHeadersConfig
Source§fn clone(&self) -> SecurityHeadersConfig
fn clone(&self) -> SecurityHeadersConfig
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 SecurityHeadersConfig
impl Debug for SecurityHeadersConfig
Source§impl Default for SecurityHeadersConfig
impl Default for SecurityHeadersConfig
Source§impl<'de> Deserialize<'de> for SecurityHeadersConfig
impl<'de> Deserialize<'de> for SecurityHeadersConfig
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 SecurityHeadersConfig
impl RefUnwindSafe for SecurityHeadersConfig
impl Send for SecurityHeadersConfig
impl Sync for SecurityHeadersConfig
impl Unpin for SecurityHeadersConfig
impl UnsafeUnpin for SecurityHeadersConfig
impl UnwindSafe for SecurityHeadersConfig
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