pub struct Referer(_);
Expand description
Referer
header, defined in
RFC7231
The Referer
[sic] header field allows the user agent to specify a
URI reference for the resource from which the target URI was obtained
(i.e., the “referrer”, though the field name is misspelled). A user
agent MUST NOT include the fragment and userinfo components of the
URI reference, if any, when generating the Referer field value.
ABNF
Referer = absolute-URI / partial-URI
Example values
http://www.example.org/hypertext/Overview.html
Examples
use headers::Referer;
let r = Referer::from_static("/People.html#tim");
Implementations
Trait Implementations
sourceimpl Header for Referer
impl Header for Referer
sourcefn name() -> &'static HeaderName
fn name() -> &'static HeaderName
The name of this header.
impl StructuralPartialEq for Referer
Auto Trait Implementations
impl RefUnwindSafe for Referer
impl Send for Referer
impl Sync for Referer
impl Unpin for Referer
impl UnwindSafe for Referer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more