pub enum SinkholeRoleType {
Exact,
Wildcard,
Regex,
}Expand description
How a rule’s pattern matches a name (SinkholeRole.sinkhole_type).
Variants§
Exact
One domain name, e.g. ads.example.com.
Wildcard
*.example.com: every name strictly below example.com, not example.com itself.
Regex
A regular expression over the name (without the trailing dot), evaluated by Relay’s
Rust regex engine. Core only checks that it compiles.
Implementations§
Trait Implementations§
Source§impl Clone for SinkholeRoleType
impl Clone for SinkholeRoleType
Source§fn clone(&self) -> SinkholeRoleType
fn clone(&self) -> SinkholeRoleType
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 moreimpl Copy for SinkholeRoleType
Source§impl Debug for SinkholeRoleType
impl Debug for SinkholeRoleType
Source§impl<'de> Deserialize<'de> for SinkholeRoleType
impl<'de> Deserialize<'de> for SinkholeRoleType
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 SinkholeRoleType
impl Display for SinkholeRoleType
impl Eq for SinkholeRoleType
Source§impl FromStr for SinkholeRoleType
impl FromStr for SinkholeRoleType
Source§impl Hash for SinkholeRoleType
impl Hash for SinkholeRoleType
Source§impl PartialEq for SinkholeRoleType
impl PartialEq for SinkholeRoleType
Source§impl Serialize for SinkholeRoleType
impl Serialize for SinkholeRoleType
impl StructuralPartialEq for SinkholeRoleType
Auto Trait Implementations§
impl Freeze for SinkholeRoleType
impl RefUnwindSafe for SinkholeRoleType
impl Send for SinkholeRoleType
impl Sync for SinkholeRoleType
impl Unpin for SinkholeRoleType
impl UnsafeUnpin for SinkholeRoleType
impl UnwindSafe for SinkholeRoleType
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.