pub struct DetectionResult {
pub detections: Vec<AttackEvent>,
pub simulated_status: u16,
pub simulated_body: String,
pub content_type: String,
pub should_block: bool,
pub suggested_delay_ms: u64,
}Available on crate feature
react-honeypot only.Expand description
Result of analyzing a single request.
Fields§
§detections: Vec<AttackEvent>All attack vectors detected in the request.
simulated_status: u16The simulated HTTP response status code.
simulated_body: StringThe simulated response body.
content_type: StringRecommended content-type for the response.
should_block: boolWhether the request should be blocked.
suggested_delay_ms: u64Suggested delay before responding (ms).
Trait Implementations§
Source§impl Clone for DetectionResult
impl Clone for DetectionResult
Source§fn clone(&self) -> DetectionResult
fn clone(&self) -> DetectionResult
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 moreSource§impl Debug for DetectionResult
impl Debug for DetectionResult
Source§impl<'de> Deserialize<'de> for DetectionResult
impl<'de> Deserialize<'de> for DetectionResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DetectionResult
impl RefUnwindSafe for DetectionResult
impl Send for DetectionResult
impl Sync for DetectionResult
impl Unpin for DetectionResult
impl UnsafeUnpin for DetectionResult
impl UnwindSafe for DetectionResult
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