pub struct Statement {
pub collections: Vec<String>,
pub names_another: bool,
pub scope: Scope,
pub window: Window,
pub limit: u32,
pub reason: String,
pub counter: String,
}Expand description
One statement: what it counts, over what, and how much it allows.
Fields§
§collections: Vec<String>The collections it counts writes to. Empty counts every collection.
names_another: boolWhether it counts only a record that names an account other than the one writing it.
scope: ScopeWhose writes are counted together.
window: WindowHow far back.
limit: u32How many writes the window holds before the next is refused.
reason: StringWhat the refusal says.
counter: StringThe statement as written, sorted, which is the name its count is
held under – see crate::Counts. It survives a rebuild of the
tree, because it is the statement rather than anything a build
assigned.
Implementations§
Trait Implementations§
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.