pub enum RequestReferrer {
NoReferrer,
Client,
Url(Url),
}Expand description
Specifies the type of referrer a request should be associated with.
Most requests have a specific origin, most likely a script or document, that
initiated/linked the resource pointed to by this request. For example, a
HTML document might have images (<img>), and those images should be
requested from a server. To follow web security practices, a HTTP
Referer header should be associated with the request.
Variants§
NoReferrer
No referrer was found or associated with this request (for example, top-level documents), or the client/server has explicitly disabled referrer by policy.
Client
The default value, which specifies that Fetch should determine the referrer using the algorithm.
Url(Url)
The request was referred to by
Trait Implementations§
Source§impl Clone for RequestReferrer
impl Clone for RequestReferrer
Source§fn clone(&self) -> RequestReferrer
fn clone(&self) -> RequestReferrer
Returns a duplicate 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 RequestReferrer
impl Debug for RequestReferrer
Source§impl Default for RequestReferrer
impl Default for RequestReferrer
Source§fn default() -> RequestReferrer
fn default() -> RequestReferrer
Returns the “default value” for a type. Read more
Source§impl PartialEq for RequestReferrer
impl PartialEq for RequestReferrer
impl StructuralPartialEq for RequestReferrer
Auto Trait Implementations§
impl Freeze for RequestReferrer
impl RefUnwindSafe for RequestReferrer
impl Send for RequestReferrer
impl Sync for RequestReferrer
impl Unpin for RequestReferrer
impl UnwindSafe for RequestReferrer
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