pub struct ParsedUrl {
pub scheme: String,
pub host: String,
pub port: u16,
pub path: String,
pub query: Option<String>,
pub is_https: bool,
}Expand description
Parsed URL components.
Fields§
§scheme: StringScheme: “http” or “https”
host: StringHost name or IP address
port: u16Port number (default 80 for http, 443 for https)
path: StringPath component (starts with ‘/’)
query: Option<String>Optional query string (without leading ‘?’)
is_https: boolWhether this is an HTTPS URL
Implementations§
Trait Implementations§
impl Eq for ParsedUrl
impl StructuralPartialEq for ParsedUrl
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)