pub enum ReferrerPolicy {
NoReferrer,
NoReferrerWhenDowngrade,
Origin,
OriginWhenCrossOrigin,
SameOrigin,
StrictOrigin,
StrictOriginWhenCrossOrigin,
UnsafeUrl,
Unrecognized(String),
}Expand description
The referring-policy used for the navigation.
Experimental: may change without notice.
Variants§
NoReferrer
noReferrer
NoReferrerWhenDowngrade
noReferrerWhenDowngrade
Origin
origin
OriginWhenCrossOrigin
originWhenCrossOrigin
SameOrigin
sameOrigin
StrictOrigin
strictOrigin
StrictOriginWhenCrossOrigin
strictOriginWhenCrossOrigin
UnsafeUrl
unsafeUrl
Unrecognized(String)
A value this vendored schema does not list. Chrome adds values ahead of the published protocol, so an unrecognised one is kept as it arrived rather than failing the payload it came in.
Trait Implementations§
Source§impl Clone for ReferrerPolicy
impl Clone for ReferrerPolicy
Source§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
impl Eq for ReferrerPolicy
Source§impl Hash for ReferrerPolicy
impl Hash for ReferrerPolicy
Source§impl PartialEq for ReferrerPolicy
impl PartialEq for ReferrerPolicy
Source§impl Serialize for ReferrerPolicy
impl Serialize for ReferrerPolicy
impl StructuralPartialEq for ReferrerPolicy
Auto Trait Implementations§
impl Forget for ReferrerPolicy
impl Freeze for ReferrerPolicy
impl RefUnwindSafe for ReferrerPolicy
impl Send for ReferrerPolicy
impl Sync for ReferrerPolicy
impl Unpin for ReferrerPolicy
impl UnsafeUnpin for ReferrerPolicy
impl UnwindSafe for ReferrerPolicy
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