pub struct NotAssertions {
pub status: Option<u16>,
pub status_in: Option<Vec<u16>>,
pub headers: BTreeMap<String, Option<String>>,
pub body_contains: Option<String>,
pub body_matches: Option<String>,
pub elapsed_ms_under: Option<u64>,
pub json: BTreeMap<String, Value>,
}Expand description
The inner block of a not: wrapper: every key Assertions has, except
not itself.
A separate type rather than not: Option<Box<Assertions>> with a runtime
check against a nested not, so that not: {not: {...}} is rejected by
the same deny_unknown_fields machinery as every other unknown key,
rather than by a bespoke check that could drift from it.
Fields§
§status: Option<u16>§status_in: Option<Vec<u16>>§headers: BTreeMap<String, Option<String>>§body_contains: Option<String>§body_matches: Option<String>§elapsed_ms_under: Option<u64>§json: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for NotAssertions
impl Clone for NotAssertions
Source§fn clone(&self) -> NotAssertions
fn clone(&self) -> NotAssertions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotAssertions
impl Debug for NotAssertions
Source§impl Default for NotAssertions
impl Default for NotAssertions
Source§fn default() -> NotAssertions
fn default() -> NotAssertions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotAssertions
impl<'de> Deserialize<'de> for NotAssertions
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 NotAssertions
impl PartialEq for NotAssertions
Source§impl Serialize for NotAssertions
impl Serialize for NotAssertions
impl StructuralPartialEq for NotAssertions
Auto Trait Implementations§
impl Freeze for NotAssertions
impl RefUnwindSafe for NotAssertions
impl Send for NotAssertions
impl Sync for NotAssertions
impl Unpin for NotAssertions
impl UnsafeUnpin for NotAssertions
impl UnwindSafe for NotAssertions
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