#[non_exhaustive]pub enum ConstraintTarget {
RequestBody,
QueryParameter {
described_before: usize,
},
PathParameter {
described_before: usize,
},
}Expand description
What an extractor describes, and therefore what its constraints apply to
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RequestBody
The request body
QueryParameter
The query parameters this extractor added, which are the ones from
described_before onward
PathParameter
The path parameters this extractor added; see ConstraintTarget::QueryParameter
Trait Implementations§
Source§impl Clone for ConstraintTarget
impl Clone for ConstraintTarget
Source§fn clone(&self) -> ConstraintTarget
fn clone(&self) -> ConstraintTarget
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 ConstraintTarget
Source§impl Debug for ConstraintTarget
impl Debug for ConstraintTarget
impl Eq for ConstraintTarget
Source§impl PartialEq for ConstraintTarget
impl PartialEq for ConstraintTarget
impl StructuralPartialEq for ConstraintTarget
Auto Trait Implementations§
impl Freeze for ConstraintTarget
impl RefUnwindSafe for ConstraintTarget
impl Send for ConstraintTarget
impl Sync for ConstraintTarget
impl Unpin for ConstraintTarget
impl UnsafeUnpin for ConstraintTarget
impl UnwindSafe for ConstraintTarget
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