Struct upcake::assertions::Contains [−][src]
pub struct Contains { /* fields omitted */ }
Expand description
Assert that a response value contains the given value.
- For strings, it asserts that the substring is present in the value;
- For arrays, it asserts that the value is present in the array;
- For mappings (dictionary/object types), asserts that the input map is present in the response map.
See AssertionConfig::Contains
for examples.
Implementations
Trait Implementations
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 RefUnwindSafe for Contains
impl UnwindSafe for Contains
Blanket Implementations
Mutably borrows from an owned value. Read more