pub enum StringMatch {
Exact(String),
Contains(String),
Regex(String),
Glob(String),
}Expand description
How to match a string field.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for StringMatch
impl Clone for StringMatch
Source§fn clone(&self) -> StringMatch
fn clone(&self) -> StringMatch
Returns a duplicate 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 StringMatch
impl Debug for StringMatch
Source§impl<'de> Deserialize<'de> for StringMatch
impl<'de> Deserialize<'de> for StringMatch
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
Auto Trait Implementations§
impl Freeze for StringMatch
impl RefUnwindSafe for StringMatch
impl Send for StringMatch
impl Sync for StringMatch
impl Unpin for StringMatch
impl UnsafeUnpin for StringMatch
impl UnwindSafe for StringMatch
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