pub struct Url {
pub protocol: String,
pub host: String,
pub port: String,
pub path: String,
/* private fields */
}Expand description
This is used to represent the various parts of a URL.
Fields§
§protocol: Stringrepresents the protocol used in the URL (defaults to http).
host: Stringrepresents the Host part of the URL.
port: Stringrepresents the port of the URL (if specified). Default is port 80 for http.
path: Stringeverything after the / (/ is the default value).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Url
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnwindSafe for Url
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