Enum serde_querystring::ParseMode
source · pub enum ParseMode {
UrlEncoded,
Duplicate,
Delimiter(u8),
Brackets,
}Expand description
An enum used to choose the parsing method for deserialization
Variants§
UrlEncoded
The simplest parser for querystring. It parses the whole querystring, and overwrites each repeated key’s value. It does not support vectors, maps nor tuples, but provides the best performance.
More description at (UrlEncodedQs)
Duplicate
A querystring parser with support for vectors/lists of values by repeating keys.
(ex. "key=value1&key=value2")
More description at (DuplicateQs)
Delimiter(u8)
A querystring parser with support for vectors/lists of values by the use of a delimiter byte.
(ex. "key=value1|value2|value3"). Holds the delimiter as a single byte Delimiter(b'|')
More description at (DelimiterQs)
Brackets
A querystring parser with support for vectors/lists, maps and enums
by the use of brackets(like qs or PHP).(ex. key[2]=value2&key[1]=value1")
More description at (BracketsQs)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseMode
impl RefUnwindSafe for ParseMode
impl Send for ParseMode
impl Sync for ParseMode
impl Unpin for ParseMode
impl UnwindSafe for ParseMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)