pub struct HeaderName { /* private fields */ }Expand description
A header name.
Implementations§
Source§impl HeaderName
impl HeaderName
Sourcepub const fn from_static(s: &'static str) -> HeaderName
pub const fn from_static(s: &'static str) -> HeaderName
Create a header name from a static str.
Sourcepub const fn from_static_standard(s: &'static str) -> HeaderName
pub const fn from_static_standard(s: &'static str) -> HeaderName
Create a header name from a static str.
Sourcepub fn is_standard(&self) -> bool
pub fn is_standard(&self) -> bool
Get whether the header was defined as a standard HTTP header.
Trait Implementations§
Source§impl Clone for HeaderName
impl Clone for HeaderName
Source§fn clone(&self) -> HeaderName
fn clone(&self) -> HeaderName
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 HeaderName
impl Debug for HeaderName
Source§impl From<&'static str> for HeaderName
impl From<&'static str> for HeaderName
Source§fn from(s: &'static str) -> HeaderName
fn from(s: &'static str) -> HeaderName
Converts to this type from the input type.
Source§impl From<HeaderName> for ClientRequestIdPolicy
impl From<HeaderName> for ClientRequestIdPolicy
Source§fn from(header_name: HeaderName) -> Self
fn from(header_name: HeaderName) -> Self
Converts to this type from the input type.
Source§impl From<String> for HeaderName
impl From<String> for HeaderName
Source§fn from(s: String) -> HeaderName
fn from(s: String) -> HeaderName
Converts to this type from the input type.
Source§impl Hash for HeaderName
impl Hash for HeaderName
Source§impl Ord for HeaderName
impl Ord for HeaderName
Source§fn cmp(&self, other: &HeaderName) -> Ordering
fn cmp(&self, other: &HeaderName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<&str> for HeaderName
impl PartialEq<&str> for HeaderName
Source§impl PartialEq for HeaderName
impl PartialEq for HeaderName
Source§impl PartialOrd for HeaderName
impl PartialOrd for HeaderName
impl Eq for HeaderName
Auto Trait Implementations§
impl Freeze for HeaderName
impl RefUnwindSafe for HeaderName
impl Send for HeaderName
impl Sync for HeaderName
impl Unpin for HeaderName
impl UnwindSafe for HeaderName
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