pub struct CacheSavings {
pub total_saved: f64,
pub without_cache_cost: f64,
pub with_cache_cost: f64,
pub savings_pct: f64,
pub by_model: Vec<(String, f64)>,
}Expand description
How much money was saved by cache hits vs paying full input price.
Fields§
§total_saved: f64§without_cache_cost: f64§with_cache_cost: f64§savings_pct: f64§by_model: Vec<(String, f64)>Trait Implementations§
Source§impl Debug for CacheSavings
impl Debug for CacheSavings
Source§impl Default for CacheSavings
impl Default for CacheSavings
Source§fn default() -> CacheSavings
fn default() -> CacheSavings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CacheSavings
impl RefUnwindSafe for CacheSavings
impl Send for CacheSavings
impl Sync for CacheSavings
impl Unpin for CacheSavings
impl UnsafeUnpin for CacheSavings
impl UnwindSafe for CacheSavings
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more