pub struct LimitStatus {
pub limits: SpendingLimits,
pub hourly_spent: Money,
pub daily_spent: Money,
pub monthly_spent: Money,
}Expand description
Current-session spend and configured limits for all three UTC periods.
Fields§
§limits: SpendingLimitsActive limit configuration.
hourly_spent: MoneySession spend since the start of the current UTC hour.
daily_spent: MoneySession spend since the start of the current UTC day.
monthly_spent: MoneySession spend since the start of the current UTC month.
Trait Implementations§
Source§impl Clone for LimitStatus
impl Clone for LimitStatus
Source§fn clone(&self) -> LimitStatus
fn clone(&self) -> LimitStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LimitStatus
Source§impl Debug for LimitStatus
impl Debug for LimitStatus
impl Eq for LimitStatus
Source§impl PartialEq for LimitStatus
impl PartialEq for LimitStatus
impl StructuralPartialEq for LimitStatus
Auto Trait Implementations§
impl Freeze for LimitStatus
impl RefUnwindSafe for LimitStatus
impl Send for LimitStatus
impl Sync for LimitStatus
impl Unpin for LimitStatus
impl UnsafeUnpin for LimitStatus
impl UnwindSafe for LimitStatus
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