pub enum NoSniff {
Enable,
}
Expand description
The X-Content-Type-Options header: turns off mime sniffing which can prevent certain attacks.
Variants§
Enable
Turns off mime sniffing.
Trait Implementations§
Source§impl Default for NoSniff
impl Default for NoSniff
Defaults to NoSniff::Enable
, turns off mime sniffing.
Auto Trait Implementations§
impl Freeze for NoSniff
impl RefUnwindSafe for NoSniff
impl Send for NoSniff
impl Sync for NoSniff
impl Unpin for NoSniff
impl UnwindSafe for NoSniff
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