pub struct IterationUsage {
pub input_tokens: u64,
pub output_tokens: u64,
}Expand description
Per-iteration usage from the Anthropic API (server-side tool loops)
Fields§
§input_tokens: u64§output_tokens: u64Trait Implementations§
Source§impl Clone for IterationUsage
impl Clone for IterationUsage
Source§fn clone(&self) -> IterationUsage
fn clone(&self) -> IterationUsage
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 IterationUsage
impl Debug for IterationUsage
Source§impl Default for IterationUsage
impl Default for IterationUsage
Source§fn default() -> IterationUsage
fn default() -> IterationUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IterationUsage
impl<'de> Deserialize<'de> for IterationUsage
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 IterationUsage
impl RefUnwindSafe for IterationUsage
impl Send for IterationUsage
impl Sync for IterationUsage
impl Unpin for IterationUsage
impl UnsafeUnpin for IterationUsage
impl UnwindSafe for IterationUsage
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