pub struct FullBudgetInfo {
pub agent_id: AgentId,
pub token_limit: u64,
pub tokens_used: u64,
pub tokens_remaining: u64,
pub calls_limit: u64,
pub calls_used: u64,
pub calls_remaining: u64,
pub window_secs: u64,
pub window_remaining_secs: u64,
pub is_exhausted: bool,
}Expand description
Full budget information including limits and usage. Used by the web dashboard to display comprehensive budget data.
Fields§
§agent_id: AgentIdThe agent this budget applies to.
token_limit: u64Maximum tokens allowed in the window.
tokens_used: u64Tokens consumed in the current window.
tokens_remaining: u64Tokens remaining in the current window.
calls_limit: u64Maximum calls allowed in the window.
calls_used: u64Calls made in the current window.
calls_remaining: u64Calls remaining in the current window.
window_secs: u64Window duration in seconds.
window_remaining_secs: u64Seconds remaining until window resets.
is_exhausted: boolWhether all budget has been exhausted.
Trait Implementations§
Source§impl Clone for FullBudgetInfo
impl Clone for FullBudgetInfo
Source§fn clone(&self) -> FullBudgetInfo
fn clone(&self) -> FullBudgetInfo
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 FullBudgetInfo
impl Debug for FullBudgetInfo
Source§impl<'de> Deserialize<'de> for FullBudgetInfo
impl<'de> Deserialize<'de> for FullBudgetInfo
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 FullBudgetInfo
impl RefUnwindSafe for FullBudgetInfo
impl Send for FullBudgetInfo
impl Sync for FullBudgetInfo
impl Unpin for FullBudgetInfo
impl UnsafeUnpin for FullBudgetInfo
impl UnwindSafe for FullBudgetInfo
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