pub struct CodeStats {
pub active: usize,
pub used: usize,
pub revoked: usize,
pub expired: usize,
}Expand description
Admin statistics snapshot (RFC-030).
Fields§
§active: usizeCodes that are currently redeemable.
used: usizeCodes that have been successfully claimed.
revoked: usizeCodes that were revoked before use.
expired: usizeCodes that expired without being claimed or revoked.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeStats
impl RefUnwindSafe for CodeStats
impl Send for CodeStats
impl Sync for CodeStats
impl Unpin for CodeStats
impl UnsafeUnpin for CodeStats
impl UnwindSafe for CodeStats
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