pub struct CuBudgetConfig {
pub monthly_budget: u64,
pub alert_threshold: f64,
pub throttle_near_limit: bool,
}Expand description
Budget configuration for a provider.
Fields§
§monthly_budget: u64Monthly CU budget (0 = unlimited).
alert_threshold: f64Alert threshold as a fraction (0.0-1.0). Default: 0.8 (80%).
throttle_near_limit: boolWhether to throttle when approaching the limit.
Trait Implementations§
Source§impl Clone for CuBudgetConfig
impl Clone for CuBudgetConfig
Source§fn clone(&self) -> CuBudgetConfig
fn clone(&self) -> CuBudgetConfig
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 CuBudgetConfig
impl Debug for CuBudgetConfig
Auto Trait Implementations§
impl Freeze for CuBudgetConfig
impl RefUnwindSafe for CuBudgetConfig
impl Send for CuBudgetConfig
impl Sync for CuBudgetConfig
impl Unpin for CuBudgetConfig
impl UnsafeUnpin for CuBudgetConfig
impl UnwindSafe for CuBudgetConfig
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