pub enum Directive {
Show 13 variants
SecRule(SecRule),
SecAction(SecAction),
SecMarker(SecMarker),
SecRuleEngine(RuleEngineMode),
SecDefaultAction(Vec<Action>),
SecRuleRemoveById(Vec<u64>),
SecRuleUpdateActionById {
id: u64,
actions: Vec<Action>,
},
SecRequestBodyAccess(bool),
SecResponseBodyAccess(bool),
SecRequestBodyLimit(usize),
SecResponseBodyLimit(usize),
Include(PathBuf),
Unknown(String),
}Expand description
A parsed ModSecurity directive.
Variants§
SecRule(SecRule)
SecRule directive - the main rule type.
SecAction(SecAction)
SecAction directive - actions without matching.
SecMarker(SecMarker)
SecMarker directive - named marker for skipAfter.
SecRuleEngine(RuleEngineMode)
SecRuleEngine directive - enable/disable rules.
SecDefaultAction(Vec<Action>)
SecDefaultAction directive - default actions for rules.
SecRuleRemoveById(Vec<u64>)
SecRuleRemoveById directive - remove rules by ID.
SecRuleUpdateActionById
SecRuleUpdateActionById directive - update rule actions.
SecRequestBodyAccess(bool)
SecRequestBodyAccess directive.
SecResponseBodyAccess(bool)
SecResponseBodyAccess directive.
SecRequestBodyLimit(usize)
SecRequestBodyLimit directive.
SecResponseBodyLimit(usize)
SecResponseBodyLimit directive.
Include(PathBuf)
Include directive - include another file.
Unknown(String)
Unknown directive (logged and skipped).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Directive
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
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