[−][src]Struct webmachine_rust::headers::HeaderValue
Struct to represent a header value and a map of header value parameters
Fields
value: StringValue of the header
params: HashMap<String, String>Map of header value parameters
quote: boolIf the header should be qouted
Implementations
impl HeaderValue[src]
pub fn parse_string(s: &str) -> HeaderValue[src]
Parses a header value string into a HeaderValue struct
pub fn basic<S: Into<String>>(s: S) -> 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]
pub fn clone(&self) -> HeaderValue[src]
pub 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]
pub fn hash<H: Hasher>(&self, state: &mut H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<HeaderValue> for HeaderValue[src]
pub fn eq(&self, other: &HeaderValue) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialEq<String> for HeaderValue[src]
pub fn eq(&self, other: &String) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialEq<str> for HeaderValue[src]
pub fn eq(&self, other: &str) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for HeaderValue[src]
Auto Trait Implementations
impl RefUnwindSafe for HeaderValue[src]
impl Send for HeaderValue[src]
impl Sync for HeaderValue[src]
impl Unpin for HeaderValue[src]
impl UnwindSafe for HeaderValue[src]
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,