pub struct UrlParts {
pub scheme: String,
pub host: String,
pub port: u16,
pub path: String,
}Expand description
The structural components of an absolute URL.
Fields§
§scheme: StringLowercase-preserving scheme exactly as written (e.g. http, https).
host: StringHost without port.
port: u16Port: the explicit port if present, else the scheme default
(http -> 80, https -> 443).
path: StringRequest path, defaulting to / when the URL has no path component.
A non-empty path has any trailing slash trimmed (except the lone /).
Trait Implementations§
impl Eq for UrlParts
impl StructuralPartialEq for UrlParts
Auto Trait Implementations§
impl Freeze for UrlParts
impl RefUnwindSafe for UrlParts
impl Send for UrlParts
impl Sync for UrlParts
impl Unpin for UrlParts
impl UnsafeUnpin for UrlParts
impl UnwindSafe for UrlParts
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