pub struct BanRecord {
pub expiry: f64,
pub reason: String,
}Expand description
One recorded ban: when it expires and why it was issued. The reason is metadata for observability (the references persist it on the Redis side); the in-memory store only acts on the expiry.
Fields§
§expiry: f64Unix seconds after which the ban no longer applies.
reason: StringThe reason ban_ip was called with.
Trait Implementations§
impl StructuralPartialEq for BanRecord
Auto Trait Implementations§
impl Freeze for BanRecord
impl RefUnwindSafe for BanRecord
impl Send for BanRecord
impl Sync for BanRecord
impl Unpin for BanRecord
impl UnsafeUnpin for BanRecord
impl UnwindSafe for BanRecord
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