Struct oxide_auth::endpoint::NormalizedParameter [−][src]
pub struct NormalizedParameter { /* fields omitted */ }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
Immutably borrows from an owned value. Read more
Immutably borrows from an owned value. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Get the unique value associated with a key. Read more
Guarantees that one can grab an owned copy.
Auto Trait Implementations
impl RefUnwindSafe for NormalizedParameter
impl Send for NormalizedParameter
impl Sync for NormalizedParameter
impl Unpin for NormalizedParameter
impl UnwindSafe for NormalizedParameter
Blanket Implementations
Mutably borrows from an owned value. Read more