Struct std::url::Url
[−]
[src]
pub struct Url { pub string: String, }
An URL, see wiki
Fields
string |
Methods
impl Url
fn new() -> Self
Create a new empty URL
fn from_str(url_str: &str) -> Self
Create an URL from a string literal
fn from_string(url_string: String) -> Self
Create an URL from String
fn to_string(&self) -> String
Convert to string
fn len(&self) -> usize
Get the length of this URL
fn scheme(&self) -> String
Return the scheme of this url
fn username(&self) -> String
Get the owner's username (the conventional @)
fn password(&self) -> String
Get the password from the url
fn host(&self) -> String
Get the host
fn port(&self) -> String
Get the post of the url
fn path(&self) -> String
Get the path of the url
fn path_parts(&self) -> Vec<String>
Return the parts of the path