pub struct DailyModelInstance {
pub date: String,
pub model: String,
pub tokens: u64,
pub sessions: u64,
pub input: u64,
pub output: u64,
pub cache_creation: u64,
pub cache_read: u64,
pub cost: f64,
}Expand description
One (day × model) row — lets the Stats Activity view scope every metric to a single model (the day×project cross-tab can’t, since it has no model split).
Fields§
§date: String§model: String§tokens: u64§sessions: u64§input: u64§output: u64§cache_creation: u64§cache_read: u64§cost: f64Trait Implementations§
Source§impl Clone for DailyModelInstance
impl Clone for DailyModelInstance
Source§fn clone(&self) -> DailyModelInstance
fn clone(&self) -> DailyModelInstance
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 DailyModelInstance
impl Debug for DailyModelInstance
Source§impl Default for DailyModelInstance
impl Default for DailyModelInstance
Source§fn default() -> DailyModelInstance
fn default() -> DailyModelInstance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DailyModelInstance
impl<'de> Deserialize<'de> for DailyModelInstance
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DailyModelInstance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DailyModelInstance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DailyModelInstance
impl Serialize for DailyModelInstance
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DailyModelInstance
impl RefUnwindSafe for DailyModelInstance
impl Send for DailyModelInstance
impl Sync for DailyModelInstance
impl Unpin for DailyModelInstance
impl UnsafeUnpin for DailyModelInstance
impl UnwindSafe for DailyModelInstance
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