[][src]Struct openapi_context::IntoHeaderValue

pub struct IntoHeaderValue<T>(pub T);

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.

Trait Implementations

impl<T: Clone> Clone for IntoHeaderValue<T>[src]

impl<T: Debug> Debug for IntoHeaderValue<T>[src]

impl<T> Deref for IntoHeaderValue<T>[src]

type Target = T

The resulting type after dereferencing.

impl Into<HeaderValue> for IntoHeaderValue<u64>[src]

impl Into<HeaderValue> for IntoHeaderValue<i64>[src]

impl Into<HeaderValue> for IntoHeaderValue<DateTime<Utc>>[src]

impl Into<HeaderValue> for IntoHeaderValue<i16>[src]

impl Into<HeaderValue> for IntoHeaderValue<u16>[src]

impl Into<HeaderValue> for IntoHeaderValue<u32>[src]

impl Into<HeaderValue> for IntoHeaderValue<usize>[src]

impl Into<HeaderValue> for IntoHeaderValue<isize>[src]

impl Into<HeaderValue> for IntoHeaderValue<i32>[src]

impl Into<HeaderValue> for IntoHeaderValue<Vec<String>>[src]

impl Into<HeaderValue> for IntoHeaderValue<String>[src]

impl TryFrom<HeaderValue> for IntoHeaderValue<u64>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<i64>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<DateTime<Utc>>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<i16>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<u16>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<u32>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<usize>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<isize>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<i32>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<Vec<String>>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<HeaderValue> for IntoHeaderValue<String>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.