pub struct ResponseMatchConfig {
pub algorithm: SimilarityAlgorithm,
pub normalize: bool,
pub ignore_case: bool,
pub ignore_punctuation: bool,
}Expand description
Configuration for response matching
Fields§
§algorithm: SimilarityAlgorithmSimilarity algorithm to use
normalize: boolWhether to normalize text before comparison
ignore_case: boolWhether to ignore case
ignore_punctuation: boolWhether to ignore punctuation
Trait Implementations§
Source§impl Clone for ResponseMatchConfig
impl Clone for ResponseMatchConfig
Source§fn clone(&self) -> ResponseMatchConfig
fn clone(&self) -> ResponseMatchConfig
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 ResponseMatchConfig
impl Debug for ResponseMatchConfig
Source§impl Default for ResponseMatchConfig
impl Default for ResponseMatchConfig
Source§impl<'de> Deserialize<'de> for ResponseMatchConfig
impl<'de> Deserialize<'de> for ResponseMatchConfig
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 ResponseMatchConfig
impl RefUnwindSafe for ResponseMatchConfig
impl Send for ResponseMatchConfig
impl Sync for ResponseMatchConfig
impl Unpin for ResponseMatchConfig
impl UnwindSafe for ResponseMatchConfig
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