pub struct VariableSpec {
pub name: VariableName,
pub selection: Option<Selection>,
pub count_mode: bool,
pub exclusions: Vec<String>,
}Expand description
A variable specification in a SecRule.
Fields§
§name: VariableNameThe variable name.
selection: Option<Selection>Optional selection (e.g., ARGS:foo or ARGS:/^user/).
count_mode: boolCount mode (& prefix).
exclusions: Vec<String>Exclusions (e.g., !ARGS:foo).
Trait Implementations§
Source§impl Clone for VariableSpec
impl Clone for VariableSpec
Source§fn clone(&self) -> VariableSpec
fn clone(&self) -> VariableSpec
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 VariableSpec
impl RefUnwindSafe for VariableSpec
impl Send for VariableSpec
impl Sync for VariableSpec
impl Unpin for VariableSpec
impl UnwindSafe for VariableSpec
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