Struct hyper_serde::Ser
source · pub struct Ser<'a, T: 'a> {
pub(crate) v: &'a T,
pub(crate) pretty: bool,
}
Expand description
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.
Fields§
§v: &'a T
§pretty: bool
Implementations§
Trait Implementations§
source§impl<'a> Serialize for Ser<'a, ContentType>
impl<'a> Serialize for Ser<'a, ContentType>
source§impl<'a> Serialize for Ser<'a, StatusCode>
impl<'a> Serialize for Ser<'a, StatusCode>
Auto Trait Implementations§
impl<'a, T> Freeze for Ser<'a, T>
impl<'a, T> RefUnwindSafe for Ser<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Ser<'a, T>where
T: Sync,
impl<'a, T> Sync for Ser<'a, T>where
T: Sync,
impl<'a, T> Unpin for Ser<'a, T>
impl<'a, T> UnwindSafe for Ser<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more