Struct irox_networking::url::URL
source · pub struct URL {
pub scheme: String,
pub username: Option<String>,
pub password: Option<String>,
pub host: String,
pub port: Option<u16>,
pub path: Option<String>,
pub query_parts: BTreeMap<String, String>,
pub fragment: Option<String>,
}Fields§
§scheme: String§username: Option<String>§password: Option<String>§host: String§port: Option<u16>§path: Option<String>§query_parts: BTreeMap<String, String>§fragment: Option<String>Implementations§
source§impl URL
impl URL
pub fn scheme(&self) -> &str
pub fn username(&self) -> Option<&String>
pub fn password(&self) -> Option<&String>
pub fn host(&self) -> &str
pub fn port(&self) -> Option<u16>
pub fn path(&self) -> Option<&String>
pub fn query_parts(&self) -> &BTreeMap<String, String>
pub fn fragment(&self) -> Option<&String>
pub fn get_path_query_fragment(&self) -> String
Trait Implementations§
impl Eq for URL
impl StructuralEq for URL
impl StructuralPartialEq for URL
Auto Trait Implementations§
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