pub struct Consumed {
pub used: u64,
pub limit: Option<u64>,
pub period_end: OffsetDateTime,
}Expand description
A successful consume: the amount was counted.
Fields§
§used: u64The total spent in this period after the increment (including it).
limit: Option<u64>The allowance applied, or None for an unbounded meter.
period_end: OffsetDateTimeWhen the period ends and the allowance resets.
Trait Implementations§
impl Copy for Consumed
impl Eq for Consumed
impl StructuralPartialEq for Consumed
Auto Trait Implementations§
impl Freeze for Consumed
impl RefUnwindSafe for Consumed
impl Send for Consumed
impl Sync for Consumed
impl Unpin for Consumed
impl UnsafeUnpin for Consumed
impl UnwindSafe for Consumed
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.