pub struct CostMetrics {
pub total_usd: f64,
pub daily_avg_usd: f64,
pub last_day_usd: f64,
pub by_model: Vec<ModelCost>,
}Expand description
Cost metrics for a project within a time range.
Fields§
§total_usd: f64§daily_avg_usd: f64§last_day_usd: f64Cost of the most recent day in the period (for anomaly detection).
by_model: Vec<ModelCost>Trait Implementations§
Source§impl Clone for CostMetrics
impl Clone for CostMetrics
Source§fn clone(&self) -> CostMetrics
fn clone(&self) -> CostMetrics
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 CostMetrics
impl Debug for CostMetrics
Source§impl<'de> Deserialize<'de> for CostMetrics
impl<'de> Deserialize<'de> for CostMetrics
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 CostMetrics
impl RefUnwindSafe for CostMetrics
impl Send for CostMetrics
impl Sync for CostMetrics
impl Unpin for CostMetrics
impl UnsafeUnpin for CostMetrics
impl UnwindSafe for CostMetrics
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