pub struct PatternStep {
pub action_type: Option<AgentActionType>,
pub target_pattern: Option<String>,
pub min_risk: f64,
}Expand description
A single step in an attack pattern definition.
Fields§
§action_type: Option<AgentActionType>Required action type (None = matches any type).
target_pattern: Option<String>Regex pattern to match the target string (None = matches any target).
min_risk: f64Minimum risk score for this step (0.0 = matches any risk).
Trait Implementations§
Source§impl Clone for PatternStep
impl Clone for PatternStep
Source§fn clone(&self) -> PatternStep
fn clone(&self) -> PatternStep
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 moreAuto Trait Implementations§
impl Freeze for PatternStep
impl RefUnwindSafe for PatternStep
impl Send for PatternStep
impl Sync for PatternStep
impl Unpin for PatternStep
impl UnsafeUnpin for PatternStep
impl UnwindSafe for PatternStep
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