pub struct StatePredicate {
pub pointer: String,
pub expected: Value,
}Expand description
One predicate over the run’s final state: the value at a JSON pointer
must equal expected.
Fields§
§pointer: StringJSON pointer (RFC 6901) into the final state object, e.g.
/messages/3/content.
expected: ValueThe expected value, compared with ==.
Trait Implementations§
Source§impl Clone for StatePredicate
impl Clone for StatePredicate
Source§impl Debug for StatePredicate
impl Debug for StatePredicate
Source§impl<'de> Deserialize<'de> for StatePredicate
impl<'de> Deserialize<'de> for StatePredicate
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
Source§impl PartialEq for StatePredicate
impl PartialEq for StatePredicate
Source§impl Serialize for StatePredicate
impl Serialize for StatePredicate
impl StructuralPartialEq for StatePredicate
Auto Trait Implementations§
impl Freeze for StatePredicate
impl RefUnwindSafe for StatePredicate
impl Send for StatePredicate
impl Sync for StatePredicate
impl Unpin for StatePredicate
impl UnsafeUnpin for StatePredicate
impl UnwindSafe for StatePredicate
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