pub struct ParsedHost {
pub hostname: String,
pub port: String,
}Expand description
Represents host information parsed from a URL
Fields§
§hostname: StringThe hostname portion of the URL (e.g. “example.com”)
port: StringThe port number as a string (e.g. “8080”)
Trait Implementations§
Source§impl Clone for ParsedHost
impl Clone for ParsedHost
Source§fn clone(&self) -> ParsedHost
fn clone(&self) -> ParsedHost
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedHost
impl RefUnwindSafe for ParsedHost
impl Send for ParsedHost
impl Sync for ParsedHost
impl Unpin for ParsedHost
impl UnwindSafe for ParsedHost
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