pub struct ExpectBodyConfig {
pub path: Option<String>,
pub eq: Option<Value>,
pub ne: Option<Value>,
pub contains: Option<String>,
pub not_contains: Option<String>,
}Expand description
Response body validation configuration
Supports JSONPath-based value checks and keyword search. At least one validation method must be specified.
Fields§
§path: Option<String>JSONPath to extract value for comparison
eq: Option<Value>Expected value (requires path). Use null to check for null/missing values.
ne: Option<Value>Value that must NOT match (requires path). Use null to check for non-null values.
contains: Option<String>Keyword that must exist in response body
not_contains: Option<String>Keyword that must NOT exist in response body
Trait Implementations§
Source§impl Clone for ExpectBodyConfig
impl Clone for ExpectBodyConfig
Source§impl Debug for ExpectBodyConfig
impl Debug for ExpectBodyConfig
Source§impl<'de> Deserialize<'de> for ExpectBodyConfig
impl<'de> Deserialize<'de> for ExpectBodyConfig
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 Forget for ExpectBodyConfig
impl Freeze for ExpectBodyConfig
impl RefUnwindSafe for ExpectBodyConfig
impl Send for ExpectBodyConfig
impl Sync for ExpectBodyConfig
impl Unpin for ExpectBodyConfig
impl UnsafeUnpin for ExpectBodyConfig
impl UnwindSafe for ExpectBodyConfig
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