Struct hyper_serde::Ser
[−]
[src]
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]
fn new(value: &'a T) -> Self
Returns a new Ser
wrapper.
fn new_pretty(value: &'a T) -> Self
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]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer
Serialize this value into the given Serde serializer. Read more
impl<'a, 'cookie> Serialize for Ser<'a, Cookie<'cookie>>
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer
Serialize this value into the given Serde serializer. Read more
impl<'a> Serialize for Ser<'a, Headers>
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer
Serialize this value into the given Serde serializer. Read more
impl<'a> Serialize for Ser<'a, Method>
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer
Serialize this value into the given Serde serializer. Read more
impl<'a> Serialize for Ser<'a, Mime>
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer
Serialize this value into the given Serde serializer. Read more