pub enum RefererPolicy {
NoReferrer,
NoReferrerWhenDowngrade,
Origin,
OriginWhenCrossOrigin,
SameOrigin,
StrictOrigin,
StrictOriginWhenCrossOrigin,
UnsafeUrl,
}Available on crate feature
security only.Expand description
Value of the Referrer-Policy header.
Variants§
NoReferrer
NoReferrerWhenDowngrade
Origin
OriginWhenCrossOrigin
SameOrigin
StrictOrigin
StrictOriginWhenCrossOrigin
UnsafeUrl
Trait Implementations§
Source§impl Clone for RefererPolicy
impl Clone for RefererPolicy
Source§fn clone(&self) -> RefererPolicy
fn clone(&self) -> RefererPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RefererPolicy
impl Debug for RefererPolicy
Source§impl<'de> Deserialize<'de> for RefererPolicy
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RefererPolicy
Available on crate feature
serde only.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 Display for RefererPolicy
impl Display for RefererPolicy
Auto Trait Implementations§
impl Freeze for RefererPolicy
impl RefUnwindSafe for RefererPolicy
impl Send for RefererPolicy
impl Sync for RefererPolicy
impl Unpin for RefererPolicy
impl UnsafeUnpin for RefererPolicy
impl UnwindSafe for RefererPolicy
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