pub enum Field {
Path,
Query,
Arg(String),
Args,
Header(String),
Method,
Ip,
Body,
}Expand description
Which part of the request a custom rule looks at.
Variants§
Path
Query
The raw query string.
Arg(String)
One argument (query or form) by name.
Args
Every argument value.
Header(String)
Method
Ip
The client address (cidr matching).
Body
The body as text (the inspected part).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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