Struct finchers_http::query::Serde
[−]
[src]
pub struct Serde<T>(pub T);
A wrapper struct to add the implementation of FromQuery
to Deserialize
able types.
Methods
impl<T> Serde<T>
[src]
pub fn into_inner(self) -> T
[src]
Consume itself and return the inner data of T
.
Trait Implementations
impl<T: Debug> Debug for Serde<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Copy> Copy for Serde<T>
[src]
impl<T: Clone> Clone for Serde<T>
[src]
fn clone(&self) -> Serde<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for Serde<T>
[src]
fn eq(&self, __arg_0: &Serde<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Serde<T>) -> bool
[src]
This method tests for !=
.
impl<T> Deref for Serde<T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<T> FromQuery for Serde<T> where
T: DeserializeOwned + 'static,
[src]
T: DeserializeOwned + 'static,
type Error = SyncFailure<Error>
The error type which will be returned from from_query
.
fn from_query(query: QueryItems) -> Result<Self, Self::Error>
[src]
Perform transformation from QueryItems
into Self
.