pub struct NormalizedParameter { /* private fields */ }Expand description
The query parameter normal form.
When a request wants to give access to its query or body parameters by reference, it can do so
by a reference of the particular trait. But when the representation of the query is not stored
in the memory associated with the request, it needs to be allocated to outlive the borrow on
the request. This allocation may as well perform the minimization/normalization into a
representation actually consumed by the backend. This normal form thus encapsulates the
associated clone-into-normal form by various possible constructors from references [WIP].
This gives rise to a custom Cow<QueryParameter> instance by requiring that normalization into
memory with unrelated lifetime is always possible.
Internally a hashmap but this may change due to optimizations.
Implementations§
Trait Implementations§
Source§impl Borrow<dyn QueryParameter> for NormalizedParameter
impl Borrow<dyn QueryParameter> for NormalizedParameter
Source§fn borrow(&self) -> &(dyn QueryParameter + 'static)
fn borrow(&self) -> &(dyn QueryParameter + 'static)
Source§impl Borrow<dyn QueryParameter + Send> for NormalizedParameter
impl Borrow<dyn QueryParameter + Send> for NormalizedParameter
Source§impl Clone for NormalizedParameter
impl Clone for NormalizedParameter
Source§fn clone(&self) -> NormalizedParameter
fn clone(&self) -> NormalizedParameter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more