pub struct CostBudgetConfig {
pub global_daily_limit_usd: f64,
pub global_monthly_limit_usd: f64,
pub tracking_persistence: bool,
pub reset_hour_utc: u8,
}Expand description
Global cost budget settings.
System-wide limits that apply regardless of individual user budgets.
Fields§
§global_daily_limit_usd: f64Global daily spending limit in USD. 0.0 = unlimited.
global_monthly_limit_usd: f64Global monthly spending limit in USD. 0.0 = unlimited.
tracking_persistence: boolWhether to persist cost tracking data to disk.
reset_hour_utc: u8Hour (UTC) at which daily budgets reset. 0 = midnight UTC.
Trait Implementations§
Source§impl Clone for CostBudgetConfig
impl Clone for CostBudgetConfig
Source§fn clone(&self) -> CostBudgetConfig
fn clone(&self) -> CostBudgetConfig
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 Debug for CostBudgetConfig
impl Debug for CostBudgetConfig
Source§impl Default for CostBudgetConfig
impl Default for CostBudgetConfig
Source§impl<'de> Deserialize<'de> for CostBudgetConfig
impl<'de> Deserialize<'de> for CostBudgetConfig
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
Auto Trait Implementations§
impl Freeze for CostBudgetConfig
impl RefUnwindSafe for CostBudgetConfig
impl Send for CostBudgetConfig
impl Sync for CostBudgetConfig
impl Unpin for CostBudgetConfig
impl UnsafeUnpin for CostBudgetConfig
impl UnwindSafe for CostBudgetConfig
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