pub struct QueryParams<'a> { /* private fields */ }Implementations§
Source§impl<'a> QueryParams<'a>
impl<'a> QueryParams<'a>
Sourcepub fn push_opt<'b, K, V>(&mut self, key: K, value: Option<V>) -> &mut Self
pub fn push_opt<'b, K, V>(&mut self, key: K, value: Option<V>) -> &mut Self
Push a single parameter
Sourcepub fn extend_opt<'b, I, K, V>(&mut self, iter: Option<I>) -> &mut Self
pub fn extend_opt<'b, I, K, V>(&mut self, iter: Option<I>) -> &mut Self
Push a set of parameters.
pub fn extend_type<'b, T>(&mut self, obj: T) -> &mut Selfwhere
T: ParamType<'b>,
'b: 'a,
pub fn extend_type_opt<'b, T>(&mut self, obj: Option<T>) -> &mut Selfwhere
T: ParamType<'b>,
'b: 'a,
pub fn add_to_url(&self, url: &mut Url)
Trait Implementations§
Source§impl<'a> Default for QueryParams<'a>
impl<'a> Default for QueryParams<'a>
Source§fn default() -> QueryParams<'a>
fn default() -> QueryParams<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for QueryParams<'a>
impl<'a> RefUnwindSafe for QueryParams<'a>
impl<'a> Send for QueryParams<'a>
impl<'a> Sync for QueryParams<'a>
impl<'a> Unpin for QueryParams<'a>
impl<'a> UnwindSafe for QueryParams<'a>
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