pub struct ResolvedBan {
pub duration: u64,
pub reason: String,
pub category: Option<String>,
}Expand description
The ban a threshold resolution decided on: how long, under what reason, and which category crossed (none for the flat fallback).
Fields§
§duration: u64Ban length in seconds (the crossed entry’s or the flat default’s).
reason: StringThe reason to record ("reason" for the flat fallback,
"reason:category" for a crossed entry, exactly as the references
build it).
category: Option<String>The category whose entry crossed, None for the flat fallback.
Trait Implementations§
Source§impl Clone for ResolvedBan
impl Clone for ResolvedBan
Source§impl Debug for ResolvedBan
impl Debug for ResolvedBan
impl Eq for ResolvedBan
Source§impl PartialEq for ResolvedBan
impl PartialEq for ResolvedBan
impl StructuralPartialEq for ResolvedBan
Auto Trait Implementations§
impl Freeze for ResolvedBan
impl RefUnwindSafe for ResolvedBan
impl Send for ResolvedBan
impl Sync for ResolvedBan
impl Unpin for ResolvedBan
impl UnsafeUnpin for ResolvedBan
impl UnwindSafe for ResolvedBan
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.