Trait finchers_http::query::FromQuery
[−]
[src]
pub trait FromQuery: Sized + 'static { type Error; fn from_query(query: QueryItems) -> Result<Self, Self::Error>; }
Trait representing the transformation from a set of HTTP query.
Associated Types
type Error
The error type which will be returned from from_query
.
Required Methods
fn from_query(query: QueryItems) -> Result<Self, Self::Error>
Perform transformation from QueryItems
into Self
.
Implementors
impl<T> FromQuery for Serde<T> where
T: DeserializeOwned + 'static, type Error = SyncFailure<Error>;