[−][src]Struct hyper_serde::Ser
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]
Ser<'a, T>: Serialize,
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
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self