pub enum ContentTypeOptions {
NoSniff,
}Expand description
Content Type Options
Variants§
NoSniff
Prevent MIME sniffing
Implementations§
Source§impl ContentTypeOptions
impl ContentTypeOptions
pub fn to_header_value(&self) -> String
Trait Implementations§
Source§impl Clone for ContentTypeOptions
impl Clone for ContentTypeOptions
Source§fn clone(&self) -> ContentTypeOptions
fn clone(&self) -> ContentTypeOptions
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 ContentTypeOptions
impl Debug for ContentTypeOptions
Source§impl PartialEq for ContentTypeOptions
impl PartialEq for ContentTypeOptions
impl Copy for ContentTypeOptions
impl Eq for ContentTypeOptions
impl StructuralPartialEq for ContentTypeOptions
Auto Trait Implementations§
impl Freeze for ContentTypeOptions
impl RefUnwindSafe for ContentTypeOptions
impl Send for ContentTypeOptions
impl Sync for ContentTypeOptions
impl Unpin for ContentTypeOptions
impl UnwindSafe for ContentTypeOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging