Struct uri_parser::URI [−][src]
pub struct URI<'a> { pub scheme: &'a str, pub user: Option<User<'a>>, pub host: Option<&'a str>, pub port: Option<u16>, pub path: Option<&'a Path>, pub query: Option<HashMap<&'a str, &'a str>>, pub hash: Option<&'a str>, }
Represents parsed URI structure URI parts are scheme, user (struct with name and password), host, port path (represented as std::path::Path), query (HashMap of key, value pairs) and hash (fragment)
Fields
scheme: &'a str
user: Option<User<'a>>
host: Option<&'a str>
port: Option<u16>
path: Option<&'a Path>
query: Option<HashMap<&'a str, &'a str>>
hash: Option<&'a str>
Trait Implementations
impl<'a> Debug for URI<'a>
[src]
impl<'a> Debug for URI<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> PartialEq for URI<'a>
[src]
impl<'a> PartialEq for URI<'a>
fn eq(&self, other: &URI<'a>) -> bool
[src]
fn eq(&self, other: &URI<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &URI<'a>) -> bool
[src]
fn ne(&self, other: &URI<'a>) -> bool
This method tests for !=
.
impl<'a> Display for URI<'a>
[src]
impl<'a> Display for URI<'a>