pub enum ParamRole {
Path,
Query {
unknown_field: Option<Ident>,
},
Body,
Other,
}Expand description
Role of a parameter in a handler function.
Variants§
Path
Path parameters (e.g., /items/{id})
Query
Query parameters (e.g., ?foo=bar)
The optional unknown_field specifies a field name for capturing unknown query params
via #[serde(flatten)] with a HashMap<String, String>.
Body
Request body
Other
Other extractors (State, custom extractors, etc.)
Trait Implementations§
impl Eq for ParamRole
impl StructuralPartialEq for ParamRole
Auto Trait Implementations§
impl Freeze for ParamRole
impl RefUnwindSafe for ParamRole
impl !Send for ParamRole
impl !Sync for ParamRole
impl Unpin for ParamRole
impl UnsafeUnpin for ParamRole
impl UnwindSafe for ParamRole
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.