pub enum ReferrerOptions {
NoReferrer,
NoReferrerDowngrade,
SameOrigin,
Origin,
StrictOrigin,
CrossOrigin,
StrictCrossOrigin,
UnsafeUrl,
}
Expand description
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§
Source§impl Clone for ReferrerOptions
impl Clone for ReferrerOptions
Source§fn clone(&self) -> ReferrerOptions
fn clone(&self) -> ReferrerOptions
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 ReferrerOptions
impl Debug for ReferrerOptions
Source§impl Hash for ReferrerOptions
impl Hash for ReferrerOptions
Source§impl PartialEq for ReferrerOptions
impl PartialEq for ReferrerOptions
impl Copy for ReferrerOptions
impl Eq for ReferrerOptions
impl StructuralPartialEq for ReferrerOptions
Auto Trait Implementations§
impl Freeze for ReferrerOptions
impl RefUnwindSafe for ReferrerOptions
impl Send for ReferrerOptions
impl Sync for ReferrerOptions
impl Unpin for ReferrerOptions
impl UnwindSafe for ReferrerOptions
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