pub struct CompiledRule {
pub id: Option<String>,
pub phase: Phase,
pub variables: Vec<VariableSpec>,
pub operator: Arc<dyn Operator>,
pub operator_negated: bool,
pub transformations: TransformationPipeline,
pub actions: Vec<Action>,
pub is_chain: bool,
pub chain_next: Option<usize>,
}Expand description
A parsed SecRule ready for execution.
Fields§
§id: Option<String>Rule ID.
phase: PhaseRule phase.
variables: Vec<VariableSpec>Variable specifications.
operator: Arc<dyn Operator>Compiled operator.
operator_negated: boolWhether operator is negated.
transformations: TransformationPipelineTransformation pipeline.
actions: Vec<Action>Actions to execute on match.
is_chain: boolWhether this rule is part of a chain.
chain_next: Option<usize>Index of next rule in chain (if any).
Trait Implementations§
Source§impl Clone for CompiledRule
impl Clone for CompiledRule
Source§fn clone(&self) -> CompiledRule
fn clone(&self) -> CompiledRule
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 CompiledRule
impl !RefUnwindSafe for CompiledRule
impl Send for CompiledRule
impl Sync for CompiledRule
impl Unpin for CompiledRule
impl !UnwindSafe for CompiledRule
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