Enum salvo_core::extract::metadata::SourceParser
source · #[non_exhaustive]pub enum SourceParser {
MultiMap,
Json,
Smart,
}
Expand description
Source parser for a source.
This parser is used to parse field data, not the request mime type. For example, if request is posted as form, but the field is string as json format, it can be parsed as json.
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.
Trait Implementations§
source§impl Clone for SourceParser
impl Clone for SourceParser
source§fn clone(&self) -> SourceParser
fn clone(&self) -> SourceParser
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 SourceParser
impl Debug for SourceParser
source§impl FromStr for SourceParser
impl FromStr for SourceParser
source§impl PartialEq for SourceParser
impl PartialEq for SourceParser
source§fn eq(&self, other: &SourceParser) -> bool
fn eq(&self, other: &SourceParser) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SourceParser
impl Eq for SourceParser
impl StructuralPartialEq for SourceParser
Auto Trait Implementations§
impl Freeze for SourceParser
impl RefUnwindSafe for SourceParser
impl Send for SourceParser
impl Sync for SourceParser
impl Unpin for SourceParser
impl UnwindSafe for SourceParser
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.