pub enum PredicateOperation {
Equals(HashMap<String, Value>),
DeepEquals(HashMap<String, Value>),
Contains(HashMap<String, Value>),
StartsWith(HashMap<String, Value>),
EndsWith(HashMap<String, Value>),
Matches(HashMap<String, Value>),
Exists(HashMap<String, Value>),
Not(Box<Predicate>),
Or(Vec<Predicate>),
And(Vec<Predicate>),
Inject(String),
}Expand description
The matching operation a predicate performs (Mountebank-compatible).
Variants§
Equals(HashMap<String, Value>)
DeepEquals(HashMap<String, Value>)
Contains(HashMap<String, Value>)
StartsWith(HashMap<String, Value>)
EndsWith(HashMap<String, Value>)
Matches(HashMap<String, Value>)
Exists(HashMap<String, Value>)
Not(Box<Predicate>)
Or(Vec<Predicate>)
And(Vec<Predicate>)
Inject(String)
Trait Implementations§
Source§impl Clone for PredicateOperation
impl Clone for PredicateOperation
Source§fn clone(&self) -> PredicateOperation
fn clone(&self) -> PredicateOperation
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 PredicateOperation
impl Debug for PredicateOperation
Source§impl<'de> Deserialize<'de> for PredicateOperation
impl<'de> Deserialize<'de> for PredicateOperation
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 PartialEq for PredicateOperation
impl PartialEq for PredicateOperation
Source§impl Serialize for PredicateOperation
impl Serialize for PredicateOperation
impl StructuralPartialEq for PredicateOperation
Auto Trait Implementations§
impl Freeze for PredicateOperation
impl RefUnwindSafe for PredicateOperation
impl Send for PredicateOperation
impl Sync for PredicateOperation
impl Unpin for PredicateOperation
impl UnsafeUnpin for PredicateOperation
impl UnwindSafe for PredicateOperation
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