Enum rocket_contrib::helmet::Frame
source · pub enum Frame {
Deny,
SameOrigin,
AllowFrom(Uri<'static>),
}
Expand description
The X-Frame-Options header: helps prevent clickjacking attacks.
Controls whether the browser should allow the page to render in a <frame>
,
<iframe>
or <object>
. This can be used to prevent
clickjacking attacks.
Variants§
Deny
Page cannot be displayed in a frame.
SameOrigin
Page can only be displayed in a frame if the page trying to render it is in the same origin. Interpretation of same-origin is browser dependent.
AllowFrom(Uri<'static>)
Page can only be displayed in a frame if the page trying to render it is
in the origin for Uri
. Interpretation of origin is browser
dependent.
Trait Implementations§
source§impl Default for Frame
impl Default for Frame
Defaults to Frame::SameOrigin
.
Auto Trait Implementations§
impl !Freeze for Frame
impl !RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more