pub struct ParsedURL {
pub protocol: Option<String>,
pub host: Option<String>,
pub hostname: Option<String>,
pub auth: Option<String>,
pub pathname: String,
pub hash: String,
pub search: String,
pub href: Option<String>,
pub protocol_relative: bool,
}Fields§
§protocol: Option<String>Protocol of the URL (e.g. “http:”, “https:”, “ftp:”)
host: Option<String>Host of the URL (e.g. “example.com:8080”)
hostname: Option<String>Hostname without port (e.g. “example.com”)
auth: Option<String>Authentication info in the URL (e.g. “username:password”)
pathname: StringPath portion of the URL (e.g. “/path/to/resource”)
hash: StringFragment identifier portion of the URL (e.g. “#section1”)
search: StringQuery string portion of the URL (e.g. “?key1=value1&key2=value2”)
href: Option<String>Complete URL string (e.g. “https://example.com/path?query#hash”)
protocol_relative: boolWhether the URL is protocol-relative (starts with “//”)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedURL
impl RefUnwindSafe for ParsedURL
impl Send for ParsedURL
impl Sync for ParsedURL
impl Unpin for ParsedURL
impl UnwindSafe for ParsedURL
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