pub struct MatchCriteria {
pub data_pattern: Option<String>,
pub text_pattern: Option<String>,
pub exact_bytes: Option<String>,
pub match_all: bool,
pub min_length: Option<usize>,
pub max_length: Option<usize>,
}Expand description
Criteria for matching incoming TCP data
Fields§
§data_pattern: Option<String>Match by data pattern (hex string, e.g., “48656c6c6f” for “Hello”)
text_pattern: Option<String>Match by data pattern (regex for text data)
exact_bytes: Option<String>Match by exact bytes (base64 encoded)
match_all: boolMatch all (default fixture)
min_length: Option<usize>Minimum data length required to match
max_length: Option<usize>Maximum data length to match
Trait Implementations§
Source§impl Clone for MatchCriteria
impl Clone for MatchCriteria
Source§fn clone(&self) -> MatchCriteria
fn clone(&self) -> MatchCriteria
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 MatchCriteria
impl Debug for MatchCriteria
Source§impl Default for MatchCriteria
impl Default for MatchCriteria
Source§fn default() -> MatchCriteria
fn default() -> MatchCriteria
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MatchCriteria
impl<'de> Deserialize<'de> for MatchCriteria
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 MatchCriteria
impl RefUnwindSafe for MatchCriteria
impl Send for MatchCriteria
impl Sync for MatchCriteria
impl Unpin for MatchCriteria
impl UnwindSafe for MatchCriteria
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