pub struct ParsedUri<'a, Q> {
pub origin_uri: &'a str,
pub schema: &'a str,
pub username: Option<&'a str>,
pub password: Option<&'a str>,
pub hosts: Vec<Host<'a>>,
pub path: Option<&'a str>,
pub raw_query: Option<&'a str>,
pub query: Q,
}
Fields§
§origin_uri: &'a str
§schema: &'a str
§username: Option<&'a str>
§password: Option<&'a str>
§hosts: Vec<Host<'a>>
§path: Option<&'a str>
§raw_query: Option<&'a str>
§query: Q
Implementations§
Source§impl<'a, Q> ParsedUri<'a, Q>
impl<'a, Q> ParsedUri<'a, Q>
Sourcepub fn host_strings(&self) -> Vec<String>
pub fn host_strings(&self) -> Vec<String>
Format hosts to “host:port” format string vector (Vec
§Returns
A Vec
pub fn endpoint(&self) -> String
pub fn url(&self) -> Result<Url, Error>
Trait Implementations§
impl<'a, Q: Eq> Eq for ParsedUri<'a, Q>
impl<'a, Q> StructuralPartialEq for ParsedUri<'a, Q>
Auto Trait Implementations§
impl<'a, Q> Freeze for ParsedUri<'a, Q>where
Q: Freeze,
impl<'a, Q> RefUnwindSafe for ParsedUri<'a, Q>where
Q: RefUnwindSafe,
impl<'a, Q> Send for ParsedUri<'a, Q>where
Q: Send,
impl<'a, Q> Sync for ParsedUri<'a, Q>where
Q: Sync,
impl<'a, Q> Unpin for ParsedUri<'a, Q>where
Q: Unpin,
impl<'a, Q> UnwindSafe for ParsedUri<'a, Q>where
Q: UnwindSafe,
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