Struct serde_querystring::parsers::DelimiterQS  
source · [−]pub struct DelimiterQS<'a> { /* private fields */ }Implementations
sourceimpl<'a> DelimiterQS<'a>
 
impl<'a> DelimiterQS<'a>
pub fn parse(slice: &'a [u8], delimiter: u8) -> Self
pub fn keys(&self) -> Vec<&Cow<'a, [u8]>>
sourcepub fn values(&self, key: &'a [u8]) -> Option<Option<Vec<Cow<'a, [u8]>>>>
 
pub fn values(&self, key: &'a [u8]) -> Option<Option<Vec<Cow<'a, [u8]>>>>
Returns the values assigned to a key(only the last assignment) parsed using delimiter
It will return None if the key didn’t exist in the querystring
It will return Some(None) if the last assignment to a key didn’t have a value, ex &key&
sourcepub fn value(&self, key: &'a [u8]) -> Option<Option<Cow<'a, [u8]>>>
 
pub fn value(&self, key: &'a [u8]) -> Option<Option<Cow<'a, [u8]>>>
Returns the last value assigned to a key without taking delimiters into account
It will return None if the key didn’t exist in the querystring
It will return Some(None) if the last assignment to a key didn’t have a value, ex &key&
Auto Trait Implementations
impl<'a> RefUnwindSafe for DelimiterQS<'a>
impl<'a> Send for DelimiterQS<'a>
impl<'a> Sync for DelimiterQS<'a>
impl<'a> Unpin for DelimiterQS<'a>
impl<'a> UnwindSafe for DelimiterQS<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more