Struct hyper_serde::Ser [] [src]

pub struct Ser<'a, T: 'a>(_);

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]

fn new(value: &'a T) -> Self

Trait Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer

Serializes this value into this serializer.

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

fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer

Serializes this value into this serializer.

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

fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer

Serializes this value into this serializer.