#[non_exhaustive]pub struct Requests {
pub ratio: f64,
pub short_term_allowed: i32,
pub long_term_allowed: i32,
pub long_term_denied: i32,
/* private fields */
}Expand description
Information about the requests relevant to the finding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ratio: f64For ‘Increasing deny ratio’, the ratio is the denied traffic divided by the allowed traffic. For ‘Allowed traffic spike’, the ratio is the allowed traffic in the short term divided by allowed traffic in the long term.
short_term_allowed: i32Allowed RPS (requests per second) in the short term.
long_term_allowed: i32Allowed RPS (requests per second) over the long term.
long_term_denied: i32Denied RPS (requests per second) over the long term.
Implementations§
Source§impl Requests
impl Requests
Trait Implementations§
impl StructuralPartialEq for Requests
Auto Trait Implementations§
impl Freeze for Requests
impl RefUnwindSafe for Requests
impl Send for Requests
impl Sync for Requests
impl Unpin for Requests
impl UnwindSafe for Requests
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