pub struct SpendingLimits {
pub hourly: Option<Money>,
pub daily: Option<Money>,
pub monthly: Option<Money>,
}Expand description
Optional spending limits for the current session’s UTC hour, day, and month.
Fields§
§hourly: Option<Money>Current UTC clock-hour limit, or None when disabled.
daily: Option<Money>Current UTC calendar-day limit, or None when disabled.
monthly: Option<Money>Current UTC calendar-month limit, or None when disabled.
Trait Implementations§
Source§impl Clone for SpendingLimits
impl Clone for SpendingLimits
Source§fn clone(&self) -> SpendingLimits
fn clone(&self) -> SpendingLimits
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 SpendingLimits
Source§impl Debug for SpendingLimits
impl Debug for SpendingLimits
Source§impl Default for SpendingLimits
impl Default for SpendingLimits
Source§fn default() -> SpendingLimits
fn default() -> SpendingLimits
Returns the “default value” for a type. Read more
impl Eq for SpendingLimits
Source§impl PartialEq for SpendingLimits
impl PartialEq for SpendingLimits
impl StructuralPartialEq for SpendingLimits
Auto Trait Implementations§
impl Freeze for SpendingLimits
impl RefUnwindSafe for SpendingLimits
impl Send for SpendingLimits
impl Sync for SpendingLimits
impl Unpin for SpendingLimits
impl UnsafeUnpin for SpendingLimits
impl UnwindSafe for SpendingLimits
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