[][src]Struct hyper_serde::Ser

pub struct Ser<'a, T: 'a> { /* fields omitted */ }

A wrapper to serialize Hyper types.

This is useful with functions such as serde_json::to_string.

Values of this type can only be passed to the serde::Serialize trait.

Methods

impl<'a, T> Ser<'a, T> where
    Ser<'a, T>: Serialize
[src]

pub fn new(value: &'a T) -> Self[src]

Returns a new Ser wrapper.

pub fn new_pretty(value: &'a T) -> Self[src]

Returns a new Ser wrapper, in pretty mode.

See serialize_pretty.

Trait Implementations

impl<'a, T: Debug + 'a> Debug for Ser<'a, T>[src]

impl<'a> Serialize for Ser<'a, ContentType>[src]

impl<'a, 'cookie> Serialize for Ser<'a, Cookie<'cookie>>[src]

impl<'a> Serialize for Ser<'a, HeaderMap>[src]

impl<'a> Serialize for Ser<'a, Method>[src]

impl<'a> Serialize for Ser<'a, Mime>[src]

impl<'a> Serialize for Ser<'a, StatusCode>[src]

impl<'a> Serialize for Ser<'a, (StatusCode, String)>[src]

impl<'a> Serialize for Ser<'a, Tm>[src]

Auto Trait Implementations

impl<'a, T> Send for Ser<'a, T> where
    T: Sync

impl<'a, T> Sync for Ser<'a, T> where
    T: Sync

Blanket Implementations

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

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T