Struct hyper_serde::De
source · pub struct De<T> {
pub(crate) v: T,
}
Expand description
A wrapper to deserialize Hyper types.
This is useful with functions such as serde_json::from_str
.
Values of this type can only be obtained through
the serde::Deserialize
trait.
Fields§
§v: T
Implementations§
source§impl<'de, T> De<T>where
De<T>: Deserialize<'de>,
impl<'de, T> De<T>where
De<T>: Deserialize<'de>,
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes this wrapper, returning the deserialized value.
Trait Implementations§
source§impl<'de> Deserialize<'de> for De<(StatusCode, String)>
impl<'de> Deserialize<'de> for De<(StatusCode, String)>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> Deserialize<'de> for De<ContentType>
impl<'de> Deserialize<'de> for De<ContentType>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> Deserialize<'de> for De<Cookie<'static>>
impl<'de> Deserialize<'de> for De<Cookie<'static>>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> Deserialize<'de> for De<HeaderMap>
impl<'de> Deserialize<'de> for De<HeaderMap>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> Deserialize<'de> for De<Method>
impl<'de> Deserialize<'de> for De<Method>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> Deserialize<'de> for De<Mime>
impl<'de> Deserialize<'de> for De<Mime>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> Deserialize<'de> for De<StatusCode>
impl<'de> Deserialize<'de> for De<StatusCode>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> Deserialize<'de> for De<Uri>
impl<'de> Deserialize<'de> for De<Uri>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq> PartialEq for De<T>
impl<T: PartialEq> PartialEq for De<T>
impl<T> StructuralPartialEq for De<T>
Auto Trait Implementations§
impl<T> Freeze for De<T>where
T: Freeze,
impl<T> RefUnwindSafe for De<T>where
T: RefUnwindSafe,
impl<T> Send for De<T>where
T: Send,
impl<T> Sync for De<T>where
T: Sync,
impl<T> Unpin for De<T>where
T: Unpin,
impl<T> UnwindSafe for De<T>where
T: UnwindSafe,
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