Enum dehashed_rs::SearchType
source · pub enum SearchType {
Simple(String),
Exact(String),
Regex(String),
Or(Vec<SearchType>),
And(Vec<SearchType>),
}
Expand description
A specific search type
Variants§
Simple(String)
Search for a simple pattern
Exact(String)
Search for an exact pattern
Regex(String)
A regex search pattern
Or(Vec<SearchType>)
Add multiple SearchTypes with an OR
And(Vec<SearchType>)
Add multiple SearchTypes with an AND
Trait Implementations§
source§impl Clone for SearchType
impl Clone for SearchType
source§fn clone(&self) -> SearchType
fn clone(&self) -> SearchType
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 SearchType
impl Debug for SearchType
source§impl<'de> Deserialize<'de> for SearchType
impl<'de> Deserialize<'de> for SearchType
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 Serialize for SearchType
impl Serialize for SearchType
Auto Trait Implementations§
impl RefUnwindSafe for SearchType
impl Send for SearchType
impl Sync for SearchType
impl Unpin for SearchType
impl UnwindSafe for SearchType
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