Struct hyper_serde::Serde
source · pub struct Serde<T>(pub T)
where
for<'de> De<T>: Deserialize<'de>,
for<'a> Ser<'a, T>: Serialize;
Expand description
A convenience wrapper to be used as a type parameter, for example when
a Vec<T>
need to be passed to serde.
Tuple Fields§
§0: T
Implementations§
source§impl<T> Serde<T>
impl<T> Serde<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes this wrapper, returning the inner value.
Trait Implementations§
source§impl<'b, T> Deserialize<'b> for Serde<T>
impl<'b, T> Deserialize<'b> for Serde<T>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'b>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'b>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> StructuralPartialEq for Serde<T>
Auto Trait Implementations§
impl<T> Freeze for Serde<T>
impl<T> RefUnwindSafe for Serde<T>
impl<T> Send for Serde<T>
impl<T> Sync for Serde<T>
impl<T> Unpin for Serde<T>
impl<T> UnwindSafe for Serde<T>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)