pub struct CostCapConfig {
pub enabled: bool,
pub default_budget_caps: Vec<BudgetCap>,
pub default_token_cap: Option<TokenCap>,
pub agents: Vec<AgentCostCap>,
}Expand description
Top-level cost cap configuration section within ProxyConfig.
Fields§
§enabled: boolEnable cost cap enforcement.
default_budget_caps: Vec<BudgetCap>Default budget caps applied to all tenants/agents unless overridden.
default_token_cap: Option<TokenCap>Default per-request token caps.
agents: Vec<AgentCostCap>Per-agent overrides.
Trait Implementations§
Source§impl Clone for CostCapConfig
impl Clone for CostCapConfig
Source§fn clone(&self) -> CostCapConfig
fn clone(&self) -> CostCapConfig
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 CostCapConfig
impl Debug for CostCapConfig
Source§impl Default for CostCapConfig
impl Default for CostCapConfig
Source§fn default() -> CostCapConfig
fn default() -> CostCapConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CostCapConfig
impl<'de> Deserialize<'de> for CostCapConfig
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 CostCapConfig
impl RefUnwindSafe for CostCapConfig
impl Send for CostCapConfig
impl Sync for CostCapConfig
impl Unpin for CostCapConfig
impl UnsafeUnpin for CostCapConfig
impl UnwindSafe for CostCapConfig
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