pub struct RequestMatchCriteria {
pub headers: HashMap<String, String>,
pub query_params: HashMap<String, String>,
pub body_pattern: Option<String>,
pub json_path: Option<String>,
pub xpath: Option<String>,
pub custom_matcher: Option<String>,
}Expand description
Request matching criteria for advanced request matching
Fields§
§headers: HashMap<String, String>Headers that must be present and match (case-insensitive header names)
query_params: HashMap<String, String>Query parameters that must be present and match
body_pattern: Option<String>Request body pattern (supports exact match or regex)
json_path: Option<String>JSONPath expression for JSON body matching
xpath: Option<String>XPath expression for XML body matching
custom_matcher: Option<String>Custom matcher expression (e.g., “headers.content-type == "application/json"”)
Trait Implementations§
Source§impl Clone for RequestMatchCriteria
impl Clone for RequestMatchCriteria
Source§fn clone(&self) -> RequestMatchCriteria
fn clone(&self) -> RequestMatchCriteria
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestMatchCriteria
impl Debug for RequestMatchCriteria
Source§impl Default for RequestMatchCriteria
impl Default for RequestMatchCriteria
Source§fn default() -> RequestMatchCriteria
fn default() -> RequestMatchCriteria
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RequestMatchCriteria
impl<'de> Deserialize<'de> for RequestMatchCriteria
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 RequestMatchCriteria
impl RefUnwindSafe for RequestMatchCriteria
impl Send for RequestMatchCriteria
impl Sync for RequestMatchCriteria
impl Unpin for RequestMatchCriteria
impl UnwindSafe for RequestMatchCriteria
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