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>,
}
Expand description
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> StructuralPartialEq for URI<'a>
Auto Trait Implementations§
impl<'a> Freeze for URI<'a>
impl<'a> RefUnwindSafe for URI<'a>
impl<'a> Send for URI<'a>
impl<'a> Sync for URI<'a>
impl<'a> Unpin for URI<'a>
impl<'a> UnwindSafe for URI<'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