pub struct RunReceipt {
pub agent: String,
pub steps: u32,
pub input_tokens: u32,
pub output_tokens: u32,
pub raw_bytes: usize,
pub filtered_bytes: usize,
}Fields§
§agent: String§steps: u32§input_tokens: u32§output_tokens: u32§raw_bytes: usize§filtered_bytes: usizeImplementations§
Source§impl RunReceipt
impl RunReceipt
pub fn from_outcome(agent: &str, o: &RunOutcome) -> Self
pub fn savings_ratio(&self) -> f64
Trait Implementations§
Source§impl Clone for RunReceipt
impl Clone for RunReceipt
Source§fn clone(&self) -> RunReceipt
fn clone(&self) -> RunReceipt
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 RunReceipt
impl Debug for RunReceipt
Auto Trait Implementations§
impl Freeze for RunReceipt
impl RefUnwindSafe for RunReceipt
impl Send for RunReceipt
impl Sync for RunReceipt
impl Unpin for RunReceipt
impl UnsafeUnpin for RunReceipt
impl UnwindSafe for RunReceipt
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