Struct urlpattern::UrlPatternInit
source · pub struct UrlPatternInit {
pub protocol: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub hostname: Option<String>,
pub port: Option<String>,
pub pathname: Option<String>,
pub search: Option<String>,
pub hash: Option<String>,
pub base_url: Option<Url>,
}
Expand description
The structured input used to create a URL pattern.
Fields§
§protocol: Option<String>
§username: Option<String>
§password: Option<String>
§hostname: Option<String>
§port: Option<String>
§pathname: Option<String>
§search: Option<String>
§hash: Option<String>
§base_url: Option<Url>
Implementations§
source§impl UrlPatternInit
impl UrlPatternInit
pub fn parse_constructor_string<R: RegExp>( pattern: &str, base_url: Option<Url>, ) -> Result<UrlPatternInit, Error>
Trait Implementations§
source§impl Clone for UrlPatternInit
impl Clone for UrlPatternInit
source§fn clone(&self) -> UrlPatternInit
fn clone(&self) -> UrlPatternInit
Returns a copy 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 moresource§impl Debug for UrlPatternInit
impl Debug for UrlPatternInit
source§impl Default for UrlPatternInit
impl Default for UrlPatternInit
source§fn default() -> UrlPatternInit
fn default() -> UrlPatternInit
Returns the “default value” for a type. Read more
source§impl PartialEq for UrlPatternInit
impl PartialEq for UrlPatternInit
impl Eq for UrlPatternInit
impl StructuralPartialEq for UrlPatternInit
Auto Trait Implementations§
impl Freeze for UrlPatternInit
impl RefUnwindSafe for UrlPatternInit
impl Send for UrlPatternInit
impl Sync for UrlPatternInit
impl Unpin for UrlPatternInit
impl UnwindSafe for UrlPatternInit
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)