pub struct AssertionCheck {
pub target: AssertionTarget,
pub pointer: String,
pub expected: Value,
}Expand description
A single JSON-pointer based check.
pointer uses RFC 6901 JSON Pointer syntax.
Fields§
§target: AssertionTargetThe target payload to inspect.
pointer: StringJSON Pointer string used to select the value to compare.
expected: ValueExpected JSON value at the pointer location.
Trait Implementations§
Source§impl Clone for AssertionCheck
impl Clone for AssertionCheck
Source§fn clone(&self) -> AssertionCheck
fn clone(&self) -> AssertionCheck
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 AssertionCheck
impl Debug for AssertionCheck
Source§impl<'de> Deserialize<'de> for AssertionCheck
impl<'de> Deserialize<'de> for AssertionCheck
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 AssertionCheck
impl RefUnwindSafe for AssertionCheck
impl Send for AssertionCheck
impl Sync for AssertionCheck
impl Unpin for AssertionCheck
impl UnsafeUnpin for AssertionCheck
impl UnwindSafe for AssertionCheck
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