pub struct ArrayMatcher { /* private fields */ }Implementations§
Source§impl ArrayMatcher
impl ArrayMatcher
pub fn new() -> Self
pub fn of(elements: Vec<Box<dyn JsonMatcher>>) -> Self
pub fn element(self, value: impl JsonMatcher + 'static) -> Self
Trait Implementations§
Source§impl Default for ArrayMatcher
impl Default for ArrayMatcher
Source§impl JsonMatcher for ArrayMatcher
impl JsonMatcher for ArrayMatcher
fn json_matches(&self, value: &Value) -> Vec<JsonMatcherError>
Auto Trait Implementations§
impl Freeze for ArrayMatcher
impl !RefUnwindSafe for ArrayMatcher
impl !Send for ArrayMatcher
impl !Sync for ArrayMatcher
impl Unpin for ArrayMatcher
impl !UnwindSafe for ArrayMatcher
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