pub struct DomainPattern(pub String);Expand description
A pattern for matching domain names.
Supports exact match ("registry.npmjs.org") and wildcard prefix
("*.npmjs.org" matches any subdomain).
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for DomainPattern
impl Clone for DomainPattern
Source§fn clone(&self) -> DomainPattern
fn clone(&self) -> DomainPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DomainPattern
impl Debug for DomainPattern
Source§impl<'de> Deserialize<'de> for DomainPattern
impl<'de> Deserialize<'de> for DomainPattern
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DomainPattern
impl Display for DomainPattern
impl Eq for DomainPattern
Source§impl From<&str> for DomainPattern
impl From<&str> for DomainPattern
Source§impl Hash for DomainPattern
impl Hash for DomainPattern
Source§impl PartialEq for DomainPattern
impl PartialEq for DomainPattern
Source§impl Serialize for DomainPattern
impl Serialize for DomainPattern
impl StructuralPartialEq for DomainPattern
Auto Trait Implementations§
impl Freeze for DomainPattern
impl RefUnwindSafe for DomainPattern
impl Send for DomainPattern
impl Sync for DomainPattern
impl Unpin for DomainPattern
impl UnsafeUnpin for DomainPattern
impl UnwindSafe for DomainPattern
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.