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
sourceimpl UrlPatternInit
impl UrlPatternInit
pub fn parse_constructor_string<R: RegExp>(
pattern: &str,
base_url: Option<Url>
) -> Result<UrlPatternInit, Error>
Trait Implementations
sourceimpl Clone for UrlPatternInit
impl Clone for UrlPatternInit
sourcefn clone(&self) -> UrlPatternInit
fn clone(&self) -> UrlPatternInit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UrlPatternInit
impl Debug for UrlPatternInit
sourceimpl Default for UrlPatternInit
impl Default for UrlPatternInit
sourcefn default() -> UrlPatternInit
fn default() -> UrlPatternInit
Returns the “default value” for a type. Read more
sourceimpl PartialEq<UrlPatternInit> for UrlPatternInit
impl PartialEq<UrlPatternInit> for UrlPatternInit
sourcefn eq(&self, other: &UrlPatternInit) -> bool
fn eq(&self, other: &UrlPatternInit) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UrlPatternInit) -> bool
fn ne(&self, other: &UrlPatternInit) -> bool
This method tests for !=
.
impl Eq for UrlPatternInit
impl StructuralEq for UrlPatternInit
impl StructuralPartialEq for UrlPatternInit
Auto Trait Implementations
impl RefUnwindSafe for UrlPatternInit
impl Send for UrlPatternInit
impl Sync for UrlPatternInit
impl Unpin for UrlPatternInit
impl UnwindSafe for UrlPatternInit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more