pub enum XFrameOptions {
Deny,
SameOrigin,
}Expand description
X-Frame-Options header value.
§Examples
use http_security_headers::XFrameOptions;
let deny = XFrameOptions::Deny;
let sameorigin = XFrameOptions::SameOrigin;Variants§
Deny
The page cannot be displayed in a frame, regardless of the site attempting to do so.
SameOrigin
The page can only be displayed in a frame on the same origin as the page itself.
Implementations§
Trait Implementations§
Source§impl Clone for XFrameOptions
impl Clone for XFrameOptions
Source§fn clone(&self) -> XFrameOptions
fn clone(&self) -> XFrameOptions
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 XFrameOptions
impl Debug for XFrameOptions
Source§impl Display for XFrameOptions
impl Display for XFrameOptions
Source§impl PartialEq for XFrameOptions
impl PartialEq for XFrameOptions
impl Copy for XFrameOptions
impl Eq for XFrameOptions
impl StructuralPartialEq for XFrameOptions
Auto Trait Implementations§
impl Freeze for XFrameOptions
impl RefUnwindSafe for XFrameOptions
impl Send for XFrameOptions
impl Sync for XFrameOptions
impl Unpin for XFrameOptions
impl UnwindSafe for XFrameOptions
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