Trait urlparse::GetQuery
[−]
[src]
pub trait GetQuery {
fn get_first(&self, k: &String) -> Option<&String>;
fn get_from_str(&self, k: &str) -> Option<QueryValue>;
fn get_first_from_str(&self, k: &str) -> Option<String>;
}
Required Methods
fn get_first(&self, k: &String) -> Option<&String>
Gets first value from Vec
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>.
fn get_first_from_str(&self, k: &str) -> Option<String>
Gets first value from Vec<String> via HashMap.get().
This requires one &str argument and returns Option<String>
instead of Option<&String>.