pub enum Feedback {
Passed,
Blocked,
TargetError(String),
}Expand description
Feedback from evaluating a candidate.
Variants§
Passed
Payload passed the WAF.
Blocked
Payload was blocked.
TargetError(String)
Target returned an error (5xx, timeout, etc.).
Implementations§
Source§impl Feedback
impl Feedback
Sourcepub fn to_verdict(&self) -> OracleVerdict
pub fn to_verdict(&self) -> OracleVerdict
Convert feedback to an oracle verdict with default metadata.
Trait Implementations§
impl StructuralPartialEq for Feedback
Auto Trait Implementations§
impl Freeze for Feedback
impl RefUnwindSafe for Feedback
impl Send for Feedback
impl Sync for Feedback
impl Unpin for Feedback
impl UnsafeUnpin for Feedback
impl UnwindSafe for Feedback
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