pub enum BudgetWindow {
Hourly,
Daily,
Weekly,
Monthly,
}Expand description
Time window for budget enforcement.
Variants§
Hourly
Rolling one-hour window.
Daily
Rolling one-day (24 h) window.
Weekly
Rolling seven-day window.
Monthly
Rolling thirty-day window.
Implementations§
Source§impl BudgetWindow
impl BudgetWindow
Trait Implementations§
Source§impl Clone for BudgetWindow
impl Clone for BudgetWindow
Source§fn clone(&self) -> BudgetWindow
fn clone(&self) -> BudgetWindow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for BudgetWindow
impl ComposeSchema for BudgetWindow
Source§impl Debug for BudgetWindow
impl Debug for BudgetWindow
Source§impl<'de> Deserialize<'de> for BudgetWindow
impl<'de> Deserialize<'de> for BudgetWindow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BudgetWindow
impl Display for BudgetWindow
Source§impl Hash for BudgetWindow
impl Hash for BudgetWindow
Source§impl PartialEq for BudgetWindow
impl PartialEq for BudgetWindow
Source§impl Serialize for BudgetWindow
impl Serialize for BudgetWindow
Source§impl ToSchema for BudgetWindow
impl ToSchema for BudgetWindow
impl Copy for BudgetWindow
impl Eq for BudgetWindow
impl StructuralPartialEq for BudgetWindow
Auto Trait Implementations§
impl Freeze for BudgetWindow
impl RefUnwindSafe for BudgetWindow
impl Send for BudgetWindow
impl Sync for BudgetWindow
impl Unpin for BudgetWindow
impl UnsafeUnpin for BudgetWindow
impl UnwindSafe for BudgetWindow
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.