pub struct SqueezerStats {
pub total_optimizations: u64,
pub total_original_tokens: u64,
pub total_optimized_tokens: u64,
pub total_original_bytes: u64,
pub total_optimized_bytes: u64,
pub history: Vec<OptimizationReport>,
}Fields§
§total_optimizations: u64§total_original_tokens: u64§total_optimized_tokens: u64§total_original_bytes: u64§total_optimized_bytes: u64§history: Vec<OptimizationReport>Implementations§
Source§impl SqueezerStats
impl SqueezerStats
pub fn total_token_savings(&self) -> u64
pub fn total_byte_savings(&self) -> u64
pub fn estimated_usd_saved(&self) -> f64
Trait Implementations§
Source§impl Debug for SqueezerStats
impl Debug for SqueezerStats
Source§impl<'de> Deserialize<'de> for SqueezerStats
impl<'de> Deserialize<'de> for SqueezerStats
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 SqueezerStats
impl RefUnwindSafe for SqueezerStats
impl Send for SqueezerStats
impl Sync for SqueezerStats
impl Unpin for SqueezerStats
impl UnsafeUnpin for SqueezerStats
impl UnwindSafe for SqueezerStats
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