pub struct XssProtection {
pub protection: bool,
pub mode_block: bool,
pub override_upstream: bool,
pub report_uri: String,
}Expand description
XSS protection header.
Fields§
§protection: boolX-XSS-Protection value 1.
mode_block: boolmode=block.
override_upstream: boolWhether to override upstream.
report_uri: StringOptional report URI.
Trait Implementations§
Source§impl Clone for XssProtection
impl Clone for XssProtection
Source§fn clone(&self) -> XssProtection
fn clone(&self) -> XssProtection
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 XssProtection
impl Debug for XssProtection
Source§impl Default for XssProtection
impl Default for XssProtection
Source§fn default() -> XssProtection
fn default() -> XssProtection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for XssProtection
impl<'de> Deserialize<'de> for XssProtection
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 XssProtection
impl RefUnwindSafe for XssProtection
impl Send for XssProtection
impl Sync for XssProtection
impl Unpin for XssProtection
impl UnsafeUnpin for XssProtection
impl UnwindSafe for XssProtection
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