pub enum XFrameOptions {
Deny,
SameOrigin,
}Expand description
X-Frame-Options header value.
Controls whether the page can be displayed in a frame.
Variants§
Deny
Prevents any domain from framing the content.
SameOrigin
Allows the current site to frame the content.
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).