pub trait FromQuery {
    type Target;
    type Error;

    // Required method
    fn from_query(query: &str) -> Result<Self::Target, Self::Error>;
}
Expand description

Type that can be decoded from a query string.

Required Associated Types§

source

type Target

Target type after parsing.

source

type Error

Error that can occur while parsing.

Required Methods§

source

fn from_query(query: &str) -> Result<Self::Target, Self::Error>

Decode this query string into the target type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: DeserializeOwned> FromQuery for T

source§

impl<T: for<'a> From<&'a str>> FromQuery for Raw<T>

§

type Target = T

§

type Error = Infallible