pub struct BlockPayload {
pub check_name: String,
pub reason: String,
pub trigger_info: String,
pub passive_mode: bool,
pub client_ip: String,
pub path: String,
pub method: String,
pub status_code: Option<u16>,
}Expand description
The reference block payload, key for key
(build_block_payload). path arrives pre-redacted;
status_code is None on the passive-mode path, where no response is
ever sent.
Fields§
§check_name: StringThe emitting check (rate_limit, ip_security, …).
reason: StringWhy, the reference reason string.
trigger_info: StringThe trigger description when the check carries one.
passive_mode: boolWhether the pipeline runs in passive (log-only) mode.
client_ip: StringThe resolved client identity.
path: StringThe redacted request path.
method: StringThe HTTP method.
status_code: Option<u16>The block answer’s status, None on the passive path.
Trait Implementations§
Source§impl Clone for BlockPayload
impl Clone for BlockPayload
Source§impl Debug for BlockPayload
impl Debug for BlockPayload
impl Eq for BlockPayload
Source§impl PartialEq for BlockPayload
impl PartialEq for BlockPayload
impl StructuralPartialEq for BlockPayload
Auto Trait Implementations§
impl Freeze for BlockPayload
impl RefUnwindSafe for BlockPayload
impl Send for BlockPayload
impl Sync for BlockPayload
impl Unpin for BlockPayload
impl UnsafeUnpin for BlockPayload
impl UnwindSafe for BlockPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.