pub struct IntoHeaderValue<T>(pub T);
Expand description
A struct to allow homogeneous conversion into a HeaderValue. We can’t implement the From/Into trait on HeaderValue because we don’t own either of the types.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for IntoHeaderValue<T>
impl<T: Clone> Clone for IntoHeaderValue<T>
Source§fn clone(&self) -> IntoHeaderValue<T>
fn clone(&self) -> IntoHeaderValue<T>
Returns a copy 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<T: Debug> Debug for IntoHeaderValue<T>
impl<T: Debug> Debug for IntoHeaderValue<T>
Source§impl Into<HeaderValue> for IntoHeaderValue<DateTime<Utc>>
impl Into<HeaderValue> for IntoHeaderValue<DateTime<Utc>>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<String>
impl Into<HeaderValue> for IntoHeaderValue<String>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<Vec<String>>
impl Into<HeaderValue> for IntoHeaderValue<Vec<String>>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<i16>
impl Into<HeaderValue> for IntoHeaderValue<i16>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<i32>
impl Into<HeaderValue> for IntoHeaderValue<i32>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<i64>
impl Into<HeaderValue> for IntoHeaderValue<i64>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<isize>
impl Into<HeaderValue> for IntoHeaderValue<isize>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<u16>
impl Into<HeaderValue> for IntoHeaderValue<u16>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<u32>
impl Into<HeaderValue> for IntoHeaderValue<u32>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<u64>
impl Into<HeaderValue> for IntoHeaderValue<u64>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl Into<HeaderValue> for IntoHeaderValue<usize>
impl Into<HeaderValue> for IntoHeaderValue<usize>
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<DateTime<Utc>>
impl TryFrom<HeaderValue> for IntoHeaderValue<DateTime<Utc>>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<String>
impl TryFrom<HeaderValue> for IntoHeaderValue<String>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<Vec<String>>
impl TryFrom<HeaderValue> for IntoHeaderValue<Vec<String>>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<i16>
impl TryFrom<HeaderValue> for IntoHeaderValue<i16>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<i32>
impl TryFrom<HeaderValue> for IntoHeaderValue<i32>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<i64>
impl TryFrom<HeaderValue> for IntoHeaderValue<i64>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<isize>
impl TryFrom<HeaderValue> for IntoHeaderValue<isize>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<u16>
impl TryFrom<HeaderValue> for IntoHeaderValue<u16>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<u32>
impl TryFrom<HeaderValue> for IntoHeaderValue<u32>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<u64>
impl TryFrom<HeaderValue> for IntoHeaderValue<u64>
Source§impl TryFrom<HeaderValue> for IntoHeaderValue<usize>
impl TryFrom<HeaderValue> for IntoHeaderValue<usize>
Auto Trait Implementations§
impl<T> Freeze for IntoHeaderValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for IntoHeaderValue<T>where
T: RefUnwindSafe,
impl<T> Send for IntoHeaderValue<T>where
T: Send,
impl<T> Sync for IntoHeaderValue<T>where
T: Sync,
impl<T> Unpin for IntoHeaderValue<T>where
T: Unpin,
impl<T> UnwindSafe for IntoHeaderValue<T>where
T: UnwindSafe,
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