pub struct URLBuilder { /* private fields */ }Implementations§
Source§impl URLBuilder
impl URLBuilder
pub fn new(scheme: &str, host: &str) -> URLBuilder
pub fn with_username(&mut self, username: &str) -> &mut Self
pub fn with_password(&mut self, password: &str) -> &mut Self
pub fn with_port(&mut self, port: u16) -> &mut Self
pub fn with_path(&mut self, path: &str) -> &mut Self
pub fn add_query(&mut self, key: &str, val: &str) -> &mut Self
pub fn with_fragment(&mut self, frag: &str) -> &mut Self
pub fn build(self) -> URL
Trait Implementations§
Source§impl Clone for URLBuilder
impl Clone for URLBuilder
Source§fn clone(&self) -> URLBuilder
fn clone(&self) -> URLBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for URLBuilder
impl RefUnwindSafe for URLBuilder
impl Send for URLBuilder
impl Sync for URLBuilder
impl Unpin for URLBuilder
impl UnwindSafe for URLBuilder
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