[][src]Enum tide::http::security::ReferrerOptions

pub enum ReferrerOptions {
    NoReferrer,
    NoReferrerDowngrade,
    SameOrigin,
    Origin,
    StrictOrigin,
    CrossOrigin,
    StrictCrossOrigin,
    UnsafeUrl,
}

Set the Referrer-Policy level

Variants

NoReferrer

Set to "no-referrer"

NoReferrerDowngrade

Set to "no-referrer-when-downgrade" the default

SameOrigin

Set to "same-origin"

Origin

Set to "origin"

StrictOrigin

Set to "strict-origin"

CrossOrigin

Set to "origin-when-cross-origin"

StrictCrossOrigin

Set to "strict-origin-when-cross-origin"

UnsafeUrl

Set to "unsafe-url"

Trait Implementations

impl Clone for ReferrerOptions[src]

impl Copy for ReferrerOptions[src]

impl Debug for ReferrerOptions[src]

impl Eq for ReferrerOptions[src]

impl Hash for ReferrerOptions[src]

impl PartialEq<ReferrerOptions> for ReferrerOptions[src]

impl StructuralEq for ReferrerOptions[src]

impl StructuralPartialEq for ReferrerOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,