pub struct FixtureRequest {
pub pattern: Option<MessagePattern>,
pub operation: Option<String>,
pub path: Option<String>,
pub topic: Option<String>,
pub routing_key: Option<String>,
pub partition: Option<i32>,
pub qos: Option<u8>,
pub headers: HashMap<String, String>,
pub body_pattern: Option<String>,
pub custom_matcher: Option<String>,
}
Expand description
Request matching criteria for fixtures
Fields§
§pattern: Option<MessagePattern>
Message pattern to match
operation: Option<String>
Operation/method to match (exact or regex)
path: Option<String>
Path/route to match (exact or regex)
topic: Option<String>
Topic to match (for pub/sub protocols)
routing_key: Option<String>
Routing key to match (for message queuing)
partition: Option<i32>
Partition to match
qos: Option<u8>
QoS level to match
headers: HashMap<String, String>
Headers/metadata to match (key-value pairs)
body_pattern: Option<String>
Request body pattern (regex for text, or exact match)
custom_matcher: Option<String>
Custom matching logic (script or expression)
Trait Implementations§
Source§impl Clone for FixtureRequest
impl Clone for FixtureRequest
Source§fn clone(&self) -> FixtureRequest
fn clone(&self) -> FixtureRequest
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 FixtureRequest
impl Debug for FixtureRequest
Source§impl<'de> Deserialize<'de> for FixtureRequest
impl<'de> Deserialize<'de> for FixtureRequest
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 FixtureRequest
impl RefUnwindSafe for FixtureRequest
impl Send for FixtureRequest
impl Sync for FixtureRequest
impl Unpin for FixtureRequest
impl UnwindSafe for FixtureRequest
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