pub struct UrlGenerator { /* private fields */ }Expand description
Generator for URLs with various schemes
Implementations§
Source§impl UrlGenerator
impl UrlGenerator
Sourcepub fn with_schemes(schemes: Vec<&'static str>) -> Self
pub fn with_schemes(schemes: Vec<&'static str>) -> Self
Create a URL generator with custom schemes
Sourcepub fn with_query(self, include: bool) -> Self
pub fn with_query(self, include: bool) -> Self
Set whether to include query parameters
Trait Implementations§
Source§impl Clone for UrlGenerator
impl Clone for UrlGenerator
Source§impl Debug for UrlGenerator
impl Debug for UrlGenerator
Source§impl Default for UrlGenerator
impl Default for UrlGenerator
Source§impl Generator<String> for UrlGenerator
impl Generator<String> for UrlGenerator
Auto Trait Implementations§
impl Freeze for UrlGenerator
impl RefUnwindSafe for UrlGenerator
impl Send for UrlGenerator
impl Sync for UrlGenerator
impl Unpin for UrlGenerator
impl UnsafeUnpin for UrlGenerator
impl UnwindSafe for UrlGenerator
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