pub enum MatchStrategy {
Exact,
Contains,
Fuzzy {
threshold: f64,
},
}Expand description
Strategy for comparing actual vs. expected responses.
Variants§
Exact
Exact string match.
Contains
Case-insensitive containment.
Fuzzy
Fuzzy match using Levenshtein-like distance.
Trait Implementations§
Source§impl Clone for MatchStrategy
impl Clone for MatchStrategy
Source§fn clone(&self) -> MatchStrategy
fn clone(&self) -> MatchStrategy
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 MatchStrategy
impl Debug for MatchStrategy
Source§impl Default for MatchStrategy
impl Default for MatchStrategy
Source§fn default() -> MatchStrategy
fn default() -> MatchStrategy
Returns the “default value” for a type. Read more
impl Copy for MatchStrategy
Auto Trait Implementations§
impl Freeze for MatchStrategy
impl RefUnwindSafe for MatchStrategy
impl Send for MatchStrategy
impl Sync for MatchStrategy
impl Unpin for MatchStrategy
impl UnwindSafe for MatchStrategy
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