pub struct Url {
pub scheme: String,
pub user: String,
pub host: String,
pub ip: Option<IpAddr>,
pub port: Option<u16>,
pub path: String,
pub query: String,
pub fragment: String,
}Fields§
§scheme: String§user: String§host: String§ip: Option<IpAddr>§port: Option<u16>§path: String§query: String§fragment: StringImplementations§
Source§impl Url
impl Url
Sourcepub fn parse_absolute(url_s: impl AsRef<[u8]>) -> Result<Self, UrlParseError>
pub fn parse_absolute(url_s: impl AsRef<[u8]>) -> Result<Self, UrlParseError>
§Errors
Returns an error when it fails to parse url_s.
Sourcepub fn parse_relative(url_s: impl AsRef<[u8]>) -> Result<Self, UrlParseError>
pub fn parse_relative(url_s: impl AsRef<[u8]>) -> Result<Self, UrlParseError>
§Errors
Returns an error when it fails to parse url_s.
Trait Implementations§
Source§impl Ord for Url
impl Ord for Url
Source§impl PartialOrd for Url
impl PartialOrd for Url
impl Eq for Url
impl StructuralPartialEq for Url
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