[−][src]Struct webmachine_rust::headers::HeaderValue
Struct to represent a header value and a map of header value parameters
Fields
value: String
Value of the header
params: HashMap<String, String>
Map of header value parameters
quote: bool
If the header should be qouted
Implementations
impl HeaderValue
[src]
pub fn parse_string(s: String) -> HeaderValue
[src]
Parses a header value string into a HeaderValue struct
pub fn basic(s: &String) -> HeaderValue
[src]
Creates a basic header value that has no parameters
pub fn to_string(&self) -> String
[src]
Converts this header value into a string representation
pub fn weak_etag(&self) -> Option<String>
[src]
Parses a weak ETag value. Weak etags are in the form W/
pub fn quote(self) -> HeaderValue
[src]
Convertes this header value into a quoted header value
impl HeaderValue
[src]
pub fn as_media_type(&self) -> MediaType
[src]
Converts the header value into a media type
impl HeaderValue
[src]
pub fn as_media_language(&self) -> MediaLanguage
[src]
Converts the header value into a media type
impl HeaderValue
[src]
pub fn as_charset(&self) -> Charset
[src]
Converts the header value into a media type
impl HeaderValue
[src]
pub fn as_encoding(&self) -> Encoding
[src]
Converts the header value into a media type
Trait Implementations
impl Clone for HeaderValue
[src]
fn clone(&self) -> HeaderValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HeaderValue
[src]
impl Eq for HeaderValue
[src]
impl Hash for HeaderValue
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<HeaderValue> for HeaderValue
[src]
fn eq(&self, other: &HeaderValue) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<String> for HeaderValue
[src]
impl PartialEq<str> for HeaderValue
[src]
impl StructuralEq for HeaderValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for HeaderValue
impl Send for HeaderValue
impl Sync for HeaderValue
impl Unpin for HeaderValue
impl UnwindSafe for HeaderValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,