pub struct Expect {
pub ok: bool,
pub result: Option<Value>,
pub error: Option<String>,
}Expand description
the expectation for a case; result/error are optional. a stray key is
rejected: a typo there silently removes the assertion the case exists for.
Fields§
§ok: bool§result: Option<Value>§error: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Expect
impl<'de> Deserialize<'de> for Expect
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 Expect
impl RefUnwindSafe for Expect
impl Send for Expect
impl Sync for Expect
impl Unpin for Expect
impl UnsafeUnpin for Expect
impl UnwindSafe for Expect
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