Enum salvo_core::extract::metadata::SourceFrom
source · #[non_exhaustive]pub enum SourceFrom {
Param,
Query,
Header,
Cookie,
Body,
}
Expand description
Source for a field.
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.
Param
The field will extracted from url param.
Query
The field will extracted from url query.
Header
The field will extracted from http header.
Cookie
The field will extracted from http cookie.
Body
The field will extracted from http payload.
Trait Implementations§
source§impl Clone for SourceFrom
impl Clone for SourceFrom
source§fn clone(&self) -> SourceFrom
fn clone(&self) -> SourceFrom
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceFrom
impl Debug for SourceFrom
source§impl FromStr for SourceFrom
impl FromStr for SourceFrom
source§impl PartialEq for SourceFrom
impl PartialEq for SourceFrom
source§fn eq(&self, other: &SourceFrom) -> bool
fn eq(&self, other: &SourceFrom) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SourceFrom
impl Eq for SourceFrom
impl StructuralPartialEq for SourceFrom
Auto Trait Implementations§
impl Freeze for SourceFrom
impl RefUnwindSafe for SourceFrom
impl Send for SourceFrom
impl Sync for SourceFrom
impl Unpin for SourceFrom
impl UnwindSafe for SourceFrom
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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.