pub enum ArrayMatchMode {
Index,
Key(String),
Contains,
}Expand description
How array elements are matched between actual and expected values at a given path.
Variants§
Index
Match by position (default). Element 0 compares to element 0, etc.
Key(String)
Match by a distinguished key field (e.g. name). Scans the actual
array for an element with a matching key value.
Contains
Find a matching element anywhere in the actual array. Uses exact value comparison for scalars, recursive subset matching for objects.
Auto Trait Implementations§
impl Freeze for ArrayMatchMode
impl RefUnwindSafe for ArrayMatchMode
impl Send for ArrayMatchMode
impl Sync for ArrayMatchMode
impl Unpin for ArrayMatchMode
impl UnsafeUnpin for ArrayMatchMode
impl UnwindSafe for ArrayMatchMode
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