pub type Query = HashMap<String, QueryValue>;
Expand description
An alias type of HashMap<String, QueryValue>
.
Aliased Type§
struct Query { /* private fields */ }
Trait Implementations§
Source§impl GetQuery for Query
impl GetQuery for Query
Source§fn get_first(&self, k: &String) -> Option<&String>
fn get_first(&self, k: &String) -> Option<&String>
Gets first value from Vec via HashMap.get().
Source§fn get_from_str(&self, k: &str) -> Option<QueryValue>
fn get_from_str(&self, k: &str) -> Option<QueryValue>
Gets value from
Vec<String>
via HashMap.get()
.
This requires one &str argument and returns Option<QueryValue>
instead of Option<&QueryValue>
.