Enum rocket_http::uri::fmt::Query
source · pub enum Query {}
Expand description
Marker type indicating use of a type for the query Part
of a URI.
In route URIs, this corresponds to all of the text after a ?
, if any.
#[get("/home/<name>/<page>?<item>&<form..>")]
^-------------- Query
Trait Implementations§
source§impl<'a, K, V, A, B> FromUriParam<Query, &'a BTreeMap<A, B, Global>> for BTreeMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<'a, K, V, A, B> FromUriParam<Query, &'a BTreeMap<A, B, Global>> for BTreeMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
source§fn from_uri_param(param: &'a BTreeMap<A, B>) -> Self::Target
fn from_uri_param(param: &'a BTreeMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<'a, K, V, A, B> FromUriParam<Query, &'a BTreeMap<A, B, Global>> for HashMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<'a, K, V, A, B> FromUriParam<Query, &'a BTreeMap<A, B, Global>> for HashMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
source§fn from_uri_param(param: &'a BTreeMap<A, B>) -> Self::Target
fn from_uri_param(param: &'a BTreeMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<'a, K, V, A, B> FromUriParam<Query, &'a HashMap<A, B, RandomState>> for BTreeMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<'a, K, V, A, B> FromUriParam<Query, &'a HashMap<A, B, RandomState>> for BTreeMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§type Target = &'a HashMap<A, B, RandomState>
type Target = &'a HashMap<A, B, RandomState>
The resulting type of this conversion.
source§fn from_uri_param(param: &'a HashMap<A, B>) -> Self::Target
fn from_uri_param(param: &'a HashMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<'a, K, V, A, B> FromUriParam<Query, &'a HashMap<A, B, RandomState>> for HashMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<'a, K, V, A, B> FromUriParam<Query, &'a HashMap<A, B, RandomState>> for HashMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§type Target = &'a HashMap<A, B, RandomState>
type Target = &'a HashMap<A, B, RandomState>
The resulting type of this conversion.
source§fn from_uri_param(param: &'a HashMap<A, B>) -> Self::Target
fn from_uri_param(param: &'a HashMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<'a, K, V, A, B> FromUriParam<Query, &'a mut BTreeMap<A, B, Global>> for BTreeMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<'a, K, V, A, B> FromUriParam<Query, &'a mut BTreeMap<A, B, Global>> for BTreeMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
source§fn from_uri_param(param: &'a mut BTreeMap<A, B>) -> Self::Target
fn from_uri_param(param: &'a mut BTreeMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<'a, K, V, A, B> FromUriParam<Query, &'a mut BTreeMap<A, B, Global>> for HashMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<'a, K, V, A, B> FromUriParam<Query, &'a mut BTreeMap<A, B, Global>> for HashMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
source§fn from_uri_param(param: &'a mut BTreeMap<A, B>) -> Self::Target
fn from_uri_param(param: &'a mut BTreeMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<'a, K, V, A, B> FromUriParam<Query, &'a mut HashMap<A, B, RandomState>> for BTreeMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<'a, K, V, A, B> FromUriParam<Query, &'a mut HashMap<A, B, RandomState>> for BTreeMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§type Target = &'a HashMap<A, B, RandomState>
type Target = &'a HashMap<A, B, RandomState>
The resulting type of this conversion.
source§fn from_uri_param(param: &'a mut HashMap<A, B>) -> Self::Target
fn from_uri_param(param: &'a mut HashMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<'a, K, V, A, B> FromUriParam<Query, &'a mut HashMap<A, B, RandomState>> for HashMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<'a, K, V, A, B> FromUriParam<Query, &'a mut HashMap<A, B, RandomState>> for HashMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§type Target = &'a HashMap<A, B, RandomState>
type Target = &'a HashMap<A, B, RandomState>
The resulting type of this conversion.
source§fn from_uri_param(param: &'a mut HashMap<A, B>) -> Self::Target
fn from_uri_param(param: &'a mut HashMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<K, V, A, B> FromUriParam<Query, BTreeMap<A, B, Global>> for BTreeMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<K, V, A, B> FromUriParam<Query, BTreeMap<A, B, Global>> for BTreeMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
source§fn from_uri_param(param: BTreeMap<A, B>) -> Self::Target
fn from_uri_param(param: BTreeMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<K, V, A, B> FromUriParam<Query, BTreeMap<A, B, Global>> for HashMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<K, V, A, B> FromUriParam<Query, BTreeMap<A, B, Global>> for HashMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
source§fn from_uri_param(param: BTreeMap<A, B>) -> Self::Target
fn from_uri_param(param: BTreeMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<K, V, A, B> FromUriParam<Query, HashMap<A, B, RandomState>> for BTreeMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<K, V, A, B> FromUriParam<Query, HashMap<A, B, RandomState>> for BTreeMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§type Target = HashMap<A, B, RandomState>
type Target = HashMap<A, B, RandomState>
The resulting type of this conversion.
source§fn from_uri_param(param: HashMap<A, B>) -> Self::Target
fn from_uri_param(param: HashMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<K, V, A, B> FromUriParam<Query, HashMap<A, B, RandomState>> for HashMap<K, V>where
A: UriDisplay<Query>,
K: FromUriParam<Query, A>,
B: UriDisplay<Query>,
V: FromUriParam<Query, B>,
impl<K, V, A, B> FromUriParam<Query, HashMap<A, B, RandomState>> for HashMap<K, V>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§type Target = HashMap<A, B, RandomState>
type Target = HashMap<A, B, RandomState>
The resulting type of this conversion.
source§fn from_uri_param(param: HashMap<A, B>) -> Self::Target
fn from_uri_param(param: HashMap<A, B>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<A, T: FromUriParam<Query, A>> FromUriParam<Query, Option<A>> for Option<T>
impl<A, T: FromUriParam<Query, A>> FromUriParam<Query, Option<A>> for Option<T>
source§fn from_uri_param(param: Option<A>) -> Self::Target
fn from_uri_param(param: Option<A>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<A, E, T: FromUriParam<Query, A>> FromUriParam<Query, Option<A>> for Result<T, E>
impl<A, E, T: FromUriParam<Query, A>> FromUriParam<Query, Option<A>> for Result<T, E>
source§fn from_uri_param(param: Option<A>) -> Self::Target
fn from_uri_param(param: Option<A>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<A, E, T: FromUriParam<Query, A>> FromUriParam<Query, Result<A, E>> for Option<T>
impl<A, E, T: FromUriParam<Query, A>> FromUriParam<Query, Result<A, E>> for Option<T>
§type Target = Result<<T as FromUriParam<Query, A>>::Target, E>
type Target = Result<<T as FromUriParam<Query, A>>::Target, E>
The resulting type of this conversion.
source§fn from_uri_param(param: Result<A, E>) -> Self::Target
fn from_uri_param(param: Result<A, E>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<A, E, T: FromUriParam<Query, A>> FromUriParam<Query, Result<A, E>> for Result<T, E>
impl<A, E, T: FromUriParam<Query, A>> FromUriParam<Query, Result<A, E>> for Result<T, E>
§type Target = Result<<T as FromUriParam<Query, A>>::Target, E>
type Target = Result<<T as FromUriParam<Query, A>>::Target, E>
The resulting type of this conversion.
source§fn from_uri_param(param: Result<A, E>) -> Self::Target
fn from_uri_param(param: Result<A, E>) -> Self::Target
Converts a value of type
T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation.source§impl<K: UriDisplay<Query>, V: UriDisplay<Query>> UriDisplay<Query> for BTreeMap<K, V>
impl<K: UriDisplay<Query>, V: UriDisplay<Query>> UriDisplay<Query> for BTreeMap<K, V>
source§impl<K: UriDisplay<Query>, V: UriDisplay<Query>> UriDisplay<Query> for HashMap<K, V>
impl<K: UriDisplay<Query>, V: UriDisplay<Query>> UriDisplay<Query> for HashMap<K, V>
source§impl<T: UriDisplay<Query>> UriDisplay<Query> for Option<T>
impl<T: UriDisplay<Query>> UriDisplay<Query> for Option<T>
Defers to the UriDisplay<Query>
implementation for T
.
source§impl<T: UriDisplay<Query>, E> UriDisplay<Query> for Result<T, E>
impl<T: UriDisplay<Query>, E> UriDisplay<Query> for Result<T, E>
Defers to the UriDisplay<Query>
implementation for T
.