pub struct BudgetLimit {
pub agent_id: AgentId,
pub token_budget: u64,
pub calls_budget: u64,
pub window_secs: u64,
}Expand description
Budget limit configuration for an agent.
Fields§
§agent_id: AgentIdThe agent this budget applies to.
token_budget: u64Maximum tokens allowed in the window.
calls_budget: u64Maximum calls allowed in the window.
window_secs: u64Window duration in seconds before reset.
Trait Implementations§
Source§impl Clone for BudgetLimit
impl Clone for BudgetLimit
Source§fn clone(&self) -> BudgetLimit
fn clone(&self) -> BudgetLimit
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 moreSource§impl Debug for BudgetLimit
impl Debug for BudgetLimit
Source§impl<'de> Deserialize<'de> for BudgetLimit
impl<'de> Deserialize<'de> for BudgetLimit
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 BudgetLimit
impl RefUnwindSafe for BudgetLimit
impl Send for BudgetLimit
impl Sync for BudgetLimit
impl Unpin for BudgetLimit
impl UnsafeUnpin for BudgetLimit
impl UnwindSafe for BudgetLimit
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