pub struct Variable {
pub kind: TargetKind,
pub selector: Option<String>,
pub negated: bool,
pub count: bool,
pub regex_selector: bool,
}Expand description
One parsed variable token (ARGS, REQUEST_HEADERS:User-Agent, !ARGS:csrf, &ARGS).
Fields§
§kind: TargetKind§selector: Option<String>:Name selector — exact, case-insensitive name match within the collection.
negated: boolLeading ! → this is an EXCLUSION (remove the named member from the set).
count: boolLeading & → count operator. Not modelled in v1 → makes the rule Unsupported.
regex_selector: boolA regex selector (:/re/) — not modelled in v1 → makes the rule Unsupported.
Trait Implementations§
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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