Enum net_traits::ReferrerPolicy
source · pub enum ReferrerPolicy {
NoReferrer,
NoReferrerWhenDowngrade,
Origin,
SameOrigin,
OriginWhenCrossOrigin,
UnsafeUrl,
StrictOrigin,
StrictOriginWhenCrossOrigin,
}
Expand description
Policies for providing a referrer header for a request
Variants§
NoReferrer
“no-referrer”
NoReferrerWhenDowngrade
“no-referrer-when-downgrade”
Origin
“origin”
SameOrigin
“same-origin”
OriginWhenCrossOrigin
“origin-when-cross-origin”
UnsafeUrl
“unsafe-url”
StrictOrigin
“strict-origin”
StrictOriginWhenCrossOrigin
“strict-origin-when-cross-origin”
Trait Implementations§
source§impl Clone for ReferrerPolicy
impl Clone for ReferrerPolicy
source§fn clone(&self) -> ReferrerPolicy
fn clone(&self) -> ReferrerPolicy
Returns a copy 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 ReferrerPolicy
impl Debug for ReferrerPolicy
source§impl<'de> Deserialize<'de> for ReferrerPolicy
impl<'de> Deserialize<'de> for ReferrerPolicy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ReferrerPolicy> for ReferrerPolicy
impl From<ReferrerPolicy> for ReferrerPolicy
source§fn from(policy: ReferrerPolicyHeader) -> Self
fn from(policy: ReferrerPolicyHeader) -> Self
Converts to this type from the input type.
source§impl From<ReferrerPolicy> for ReferrerPolicyHeader
impl From<ReferrerPolicy> for ReferrerPolicyHeader
source§fn from(referrer_policy: ReferrerPolicy) -> Self
fn from(referrer_policy: ReferrerPolicy) -> Self
Converts to this type from the input type.
source§impl MallocSizeOf for ReferrerPolicy
impl MallocSizeOf for ReferrerPolicy
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.