pub struct MatchConfig { /* private fields */ }Expand description
Configures how array elements are matched between actual and expected values.
By default, arrays are matched by index. Each path can be configured with
a different matching mode and ambiguity strategy via ArrayMatchConfig.
Implementations§
Source§impl MatchConfig
impl MatchConfig
Sourcepub fn with_config_at(self, path: &str, config: ArrayMatchConfig) -> Self
pub fn with_config_at(self, path: &str, config: ArrayMatchConfig) -> Self
Sets the array match configuration for the given dot-separated path.
Sourcepub fn config_at(&self, path: &str) -> Option<&ArrayMatchConfig>
pub fn config_at(&self, path: &str) -> Option<&ArrayMatchConfig>
Returns the array match configuration for the given path, if configured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchConfig
impl RefUnwindSafe for MatchConfig
impl Send for MatchConfig
impl Sync for MatchConfig
impl Unpin for MatchConfig
impl UnsafeUnpin for MatchConfig
impl UnwindSafe for MatchConfig
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