pub struct UpdateTargetById {
pub ids: Vec<RuleIdSelector>,
pub additions: Vec<VariableSpec>,
pub exclusions: Vec<String>,
pub replaced: Option<String>,
pub location: SourceLocation,
}Expand description
A parsed SecRuleUpdateTargetById directive.
Per ModSecurity semantics:
- positive targets (
ARGS:foo) are appended to the rule’s variable list (or replacereplacedwhen a third argument is given); !-prefixed targets (!ARGS:password) add a target exclusion so that the named variable is no longer inspected by the rule.
Fields§
§ids: Vec<RuleIdSelector>The rule IDs (or ranges) to update.
additions: Vec<VariableSpec>Positive targets to append (or to substitute for replaced).
exclusions: Vec<String>Target exclusions (the text after !, e.g. ARGS:password).
replaced: Option<String>Optional target to replace (third directive argument).
location: SourceLocationSource location for diagnostics.
Trait Implementations§
Source§impl Clone for UpdateTargetById
impl Clone for UpdateTargetById
Source§fn clone(&self) -> UpdateTargetById
fn clone(&self) -> UpdateTargetById
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateTargetById
impl RefUnwindSafe for UpdateTargetById
impl Send for UpdateTargetById
impl Sync for UpdateTargetById
impl Unpin for UpdateTargetById
impl UnsafeUnpin for UpdateTargetById
impl UnwindSafe for UpdateTargetById
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