pub enum ParamSource {
Path,
Query,
Body,
}Expand description
Where a parameter’s value is read from.
Variants§
Path
From a {name} segment of the URL path.
Query
From the query string.
Body
From the request body.
Trait Implementations§
Source§impl Clone for ParamSource
impl Clone for ParamSource
Source§fn clone(&self) -> ParamSource
fn clone(&self) -> ParamSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParamSource
Source§impl Debug for ParamSource
impl Debug for ParamSource
impl Eq for ParamSource
Source§impl PartialEq for ParamSource
impl PartialEq for ParamSource
Source§fn eq(&self, other: &ParamSource) -> bool
fn eq(&self, other: &ParamSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParamSource
Auto Trait Implementations§
impl Freeze for ParamSource
impl RefUnwindSafe for ParamSource
impl Send for ParamSource
impl Sync for ParamSource
impl Unpin for ParamSource
impl UnsafeUnpin for ParamSource
impl UnwindSafe for ParamSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.