pub struct Query { /* private fields */ }
Implementations§
Source§impl Query
impl Query
pub fn new(params: Vec<(String, Option<String>)>) -> Self
pub fn params(&self) -> HashMap<&String, Vec<&String>>
pub fn add(&mut self, key: String, value: String)
pub fn add_opt(&mut self, key: String, value: Option<String>)
pub fn get_param(&self, key: String) -> Option<Vec<&String>>
pub fn as_string(&self) -> String
Trait Implementations§
Source§impl PartialOrd for Query
impl PartialOrd for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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