pub struct SavedCostEstimate {
pub write_usd: f64,
pub reread_usd: f64,
pub total_usd: f64,
}Expand description
Output of estimate_saved_cost.
Fields§
§write_usd: f64Avoided cache-write cost (tokens enter the context once).
reread_usd: f64Avoided cache-read cost over the assumed re-read turns.
total_usd: f64write + reread.
Trait Implementations§
Source§impl Clone for SavedCostEstimate
impl Clone for SavedCostEstimate
Source§fn clone(&self) -> SavedCostEstimate
fn clone(&self) -> SavedCostEstimate
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 SavedCostEstimate
impl Debug for SavedCostEstimate
Source§impl PartialEq for SavedCostEstimate
impl PartialEq for SavedCostEstimate
impl StructuralPartialEq for SavedCostEstimate
Auto Trait Implementations§
impl Freeze for SavedCostEstimate
impl RefUnwindSafe for SavedCostEstimate
impl Send for SavedCostEstimate
impl Sync for SavedCostEstimate
impl Unpin for SavedCostEstimate
impl UnsafeUnpin for SavedCostEstimate
impl UnwindSafe for SavedCostEstimate
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