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§
§impl<'a, K, V, A, B> FromUriParam<Query, &'a BTreeMap<A, B, Global>> for BTreeMap<K, V, Global>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, Global>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§fn from_uri_param(
param: &'a BTreeMap<A, B, Global>
) -> <BTreeMap<K, V, Global> as FromUriParam<Query, &'a BTreeMap<A, B, Global>>>::Target
fn from_uri_param( param: &'a BTreeMap<A, B, Global> ) -> <BTreeMap<K, V, Global> as FromUriParam<Query, &'a BTreeMap<A, B, Global>>>::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.§impl<'a, K, V, A, B> FromUriParam<Query, &'a BTreeMap<A, B, Global>> for HashMap<K, V, RandomState>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, RandomState>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§fn from_uri_param(
param: &'a BTreeMap<A, B, Global>
) -> <HashMap<K, V, RandomState> as FromUriParam<Query, &'a BTreeMap<A, B, Global>>>::Target
fn from_uri_param( param: &'a BTreeMap<A, B, Global> ) -> <HashMap<K, V, RandomState> as FromUriParam<Query, &'a BTreeMap<A, B, Global>>>::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.§impl<'a, K, V, A, B> FromUriParam<Query, &'a HashMap<A, B, RandomState>> for BTreeMap<K, V, Global>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, Global>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.
§fn from_uri_param(
param: &'a HashMap<A, B, RandomState>
) -> <BTreeMap<K, V, Global> as FromUriParam<Query, &'a HashMap<A, B, RandomState>>>::Target
fn from_uri_param( param: &'a HashMap<A, B, RandomState> ) -> <BTreeMap<K, V, Global> as FromUriParam<Query, &'a HashMap<A, B, RandomState>>>::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.§impl<'a, K, V, A, B> FromUriParam<Query, &'a HashMap<A, B, RandomState>> for HashMap<K, V, RandomState>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, RandomState>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.
§fn from_uri_param(
param: &'a HashMap<A, B, RandomState>
) -> <HashMap<K, V, RandomState> as FromUriParam<Query, &'a HashMap<A, B, RandomState>>>::Target
fn from_uri_param( param: &'a HashMap<A, B, RandomState> ) -> <HashMap<K, V, RandomState> as FromUriParam<Query, &'a HashMap<A, B, RandomState>>>::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: Serialize> FromUriParam<Query, &'a T> for Json<T>
Available on crate feature json
only.
impl<'a, T: Serialize> FromUriParam<Query, &'a T> for Json<T>
Available on crate feature
json
only.source§fn from_uri_param(param: &'a T) -> Self::Target
fn from_uri_param(param: &'a T) -> 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.§impl<'a, K, V, A, B> FromUriParam<Query, &'a mut BTreeMap<A, B, Global>> for BTreeMap<K, V, Global>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, Global>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§fn from_uri_param(
param: &'a mut BTreeMap<A, B, Global>
) -> <BTreeMap<K, V, Global> as FromUriParam<Query, &'a mut BTreeMap<A, B, Global>>>::Target
fn from_uri_param( param: &'a mut BTreeMap<A, B, Global> ) -> <BTreeMap<K, V, Global> as FromUriParam<Query, &'a mut BTreeMap<A, B, Global>>>::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.§impl<'a, K, V, A, B> FromUriParam<Query, &'a mut BTreeMap<A, B, Global>> for HashMap<K, V, RandomState>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, RandomState>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§fn from_uri_param(
param: &'a mut BTreeMap<A, B, Global>
) -> <HashMap<K, V, RandomState> as FromUriParam<Query, &'a mut BTreeMap<A, B, Global>>>::Target
fn from_uri_param( param: &'a mut BTreeMap<A, B, Global> ) -> <HashMap<K, V, RandomState> as FromUriParam<Query, &'a mut BTreeMap<A, B, Global>>>::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.§impl<'a, K, V, A, B> FromUriParam<Query, &'a mut HashMap<A, B, RandomState>> for BTreeMap<K, V, Global>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, Global>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.
§fn from_uri_param(
param: &'a mut HashMap<A, B, RandomState>
) -> <BTreeMap<K, V, Global> as FromUriParam<Query, &'a mut HashMap<A, B, RandomState>>>::Target
fn from_uri_param( param: &'a mut HashMap<A, B, RandomState> ) -> <BTreeMap<K, V, Global> as FromUriParam<Query, &'a mut HashMap<A, B, RandomState>>>::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.§impl<'a, K, V, A, B> FromUriParam<Query, &'a mut HashMap<A, B, RandomState>> for HashMap<K, V, RandomState>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, RandomState>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.
§fn from_uri_param(
param: &'a mut HashMap<A, B, RandomState>
) -> <HashMap<K, V, RandomState> as FromUriParam<Query, &'a mut HashMap<A, B, RandomState>>>::Target
fn from_uri_param( param: &'a mut HashMap<A, B, RandomState> ) -> <HashMap<K, V, RandomState> as FromUriParam<Query, &'a mut HashMap<A, B, RandomState>>>::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: Serialize> FromUriParam<Query, &'a mut T> for Json<T>
Available on crate feature json
only.
impl<'a, T: Serialize> FromUriParam<Query, &'a mut T> for Json<T>
Available on crate feature
json
only.source§fn from_uri_param(param: &'a mut T) -> Self::Target
fn from_uri_param(param: &'a mut T) -> 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<'x, T: Serialize> FromUriParam<Query, &'x Json<T>> for Json<T>
Available on crate feature json
only.
impl<'x, T: Serialize> FromUriParam<Query, &'x Json<T>> for Json<T>
Available on crate feature
json
only.source§fn from_uri_param(param: &'x Json<T>) -> &'x Json<T>
fn from_uri_param(param: &'x Json<T>) -> &'x Json<T>
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<'x, T: Serialize> FromUriParam<Query, &'x mut Json<T>> for Json<T>
Available on crate feature json
only.
impl<'x, T: Serialize> FromUriParam<Query, &'x mut Json<T>> for Json<T>
Available on crate feature
json
only.source§fn from_uri_param(param: &'x mut Json<T>) -> &'x mut Json<T>
fn from_uri_param(param: &'x mut Json<T>) -> &'x mut Json<T>
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<'f, A, T: FromUriParam<Query, A> + FromForm<'f>> FromUriParam<Query, A> for Lenient<T>
impl<'f, A, T: FromUriParam<Query, A> + FromForm<'f>> FromUriParam<Query, A> for Lenient<T>
§type Target = <T as FromUriParam<Query, A>>::Target
type Target = <T as FromUriParam<Query, A>>::Target
The resulting type of this conversion.
source§fn from_uri_param(param: A) -> Self::Target
fn from_uri_param(param: 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<'f, A, T: FromUriParam<Query, A> + FromForm<'f>> FromUriParam<Query, A> for Strict<T>
impl<'f, A, T: FromUriParam<Query, A> + FromForm<'f>> FromUriParam<Query, A> for Strict<T>
§type Target = <T as FromUriParam<Query, A>>::Target
type Target = <T as FromUriParam<Query, A>>::Target
The resulting type of this conversion.
source§fn from_uri_param(param: A) -> Self::Target
fn from_uri_param(param: 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.§impl<K, V, A, B> FromUriParam<Query, BTreeMap<A, B, Global>> for BTreeMap<K, V, Global>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, Global>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§fn from_uri_param(
param: BTreeMap<A, B, Global>
) -> <BTreeMap<K, V, Global> as FromUriParam<Query, BTreeMap<A, B, Global>>>::Target
fn from_uri_param( param: BTreeMap<A, B, Global> ) -> <BTreeMap<K, V, Global> as FromUriParam<Query, BTreeMap<A, B, Global>>>::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.§impl<K, V, A, B> FromUriParam<Query, BTreeMap<A, B, Global>> for HashMap<K, V, RandomState>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, RandomState>where A: UriDisplay<Query>, K: FromUriParam<Query, A>, B: UriDisplay<Query>, V: FromUriParam<Query, B>,
§fn from_uri_param(
param: BTreeMap<A, B, Global>
) -> <HashMap<K, V, RandomState> as FromUriParam<Query, BTreeMap<A, B, Global>>>::Target
fn from_uri_param( param: BTreeMap<A, B, Global> ) -> <HashMap<K, V, RandomState> as FromUriParam<Query, BTreeMap<A, B, Global>>>::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.§impl<K, V, A, B> FromUriParam<Query, HashMap<A, B, RandomState>> for BTreeMap<K, V, Global>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, Global>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.
§fn from_uri_param(
param: HashMap<A, B, RandomState>
) -> <BTreeMap<K, V, Global> as FromUriParam<Query, HashMap<A, B, RandomState>>>::Target
fn from_uri_param( param: HashMap<A, B, RandomState> ) -> <BTreeMap<K, V, Global> as FromUriParam<Query, HashMap<A, B, RandomState>>>::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.§impl<K, V, A, B> FromUriParam<Query, HashMap<A, B, RandomState>> for HashMap<K, V, RandomState>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, RandomState>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.
§fn from_uri_param(
param: HashMap<A, B, RandomState>
) -> <HashMap<K, V, RandomState> as FromUriParam<Query, HashMap<A, B, RandomState>>>::Target
fn from_uri_param( param: HashMap<A, B, RandomState> ) -> <HashMap<K, V, RandomState> as FromUriParam<Query, HashMap<A, B, RandomState>>>::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<T: Serialize> FromUriParam<Query, Json<T>> for Json<T>
Available on crate feature json
only.
impl<T: Serialize> FromUriParam<Query, Json<T>> for Json<T>
Available on crate feature
json
only.source§fn from_uri_param(param: Json<T>) -> Json<T>
fn from_uri_param(param: Json<T>) -> Json<T>
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.§impl<A, T> FromUriParam<Query, Option<A>> for Option<T>where
T: FromUriParam<Query, A>,
impl<A, T> FromUriParam<Query, Option<A>> for Option<T>where T: FromUriParam<Query, A>,
§fn from_uri_param(
param: Option<A>
) -> <Option<T> as FromUriParam<Query, Option<A>>>::Target
fn from_uri_param( param: Option<A> ) -> <Option<T> as FromUriParam<Query, Option<A>>>::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.§impl<A, E, T> FromUriParam<Query, Option<A>> for Result<T, E>where
T: FromUriParam<Query, A>,
impl<A, E, T> FromUriParam<Query, Option<A>> for Result<T, E>where T: FromUriParam<Query, A>,
§fn from_uri_param(
param: Option<A>
) -> <Result<T, E> as FromUriParam<Query, Option<A>>>::Target
fn from_uri_param( param: Option<A> ) -> <Result<T, E> as FromUriParam<Query, Option<A>>>::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.§impl<A, E, T> FromUriParam<Query, Result<A, E>> for Option<T>where
T: FromUriParam<Query, A>,
impl<A, E, T> FromUriParam<Query, Result<A, E>> for Option<T>where T: FromUriParam<Query, A>,
§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.
§fn from_uri_param(
param: Result<A, E>
) -> <Option<T> as FromUriParam<Query, Result<A, E>>>::Target
fn from_uri_param( param: Result<A, E> ) -> <Option<T> as FromUriParam<Query, Result<A, E>>>::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.§impl<A, E, T> FromUriParam<Query, Result<A, E>> for Result<T, E>where
T: FromUriParam<Query, A>,
impl<A, E, T> FromUriParam<Query, Result<A, E>> for Result<T, E>where T: FromUriParam<Query, A>,
§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.
§fn from_uri_param(
param: Result<A, E>
) -> <Result<T, E> as FromUriParam<Query, Result<A, E>>>::Target
fn from_uri_param( param: Result<A, E> ) -> <Result<T, E> as FromUriParam<Query, Result<A, E>>>::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<T: Serialize> FromUriParam<Query, T> for Json<T>
Available on crate feature json
only.
impl<T: Serialize> FromUriParam<Query, T> for Json<T>
Available on crate feature
json
only.source§fn from_uri_param(param: T) -> Self::Target
fn from_uri_param(param: T) -> 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.§impl<K, V> UriDisplay<Query> for BTreeMap<K, V, Global>where
K: UriDisplay<Query>,
V: UriDisplay<Query>,
impl<K, V> UriDisplay<Query> for BTreeMap<K, V, Global>where K: UriDisplay<Query>, V: UriDisplay<Query>,
§impl<K, V> UriDisplay<Query> for HashMap<K, V, RandomState>where
K: UriDisplay<Query>,
V: UriDisplay<Query>,
impl<K, V> UriDisplay<Query> for HashMap<K, V, RandomState>where K: UriDisplay<Query>, V: UriDisplay<Query>,
§impl<T> UriDisplay<Query> for Option<T>where
T: UriDisplay<Query>,
impl<T> UriDisplay<Query> for Option<T>where T: UriDisplay<Query>,
Defers to the UriDisplay<Query>
implementation for T
.
§impl<T, E> UriDisplay<Query> for Result<T, E>where
T: UriDisplay<Query>,
impl<T, E> UriDisplay<Query> for Result<T, E>where T: UriDisplay<Query>,
Defers to the UriDisplay<Query>
implementation for T
.
§impl<T> UriDisplay<Query> for Vec<T, Global>where
T: UriDisplay<Query>,
impl<T> UriDisplay<Query> for Vec<T, Global>where T: UriDisplay<Query>,
impl Copy for Query
impl<T> Ignorable<Query> for Option<T>
impl<T, E> Ignorable<Query> for Result<T, E>
impl Part for Query
Auto Trait Implementations§
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self
into a collection.