pub struct CostByModelRow {
pub model: String,
pub session_count: i64,
pub cost_usd: f64,
pub tokens_in: i64,
pub tokens_out: i64,
}Expand description
Single per-model row for GET /api/v1/sessions/cost-by-model.
Parity with the Python response items at
cognee/api/v1/sessions/routers/get_sessions_router.py:241-251.
Fields§
§model: String§session_count: i64§cost_usd: f64§tokens_in: i64§tokens_out: i64Trait Implementations§
Source§impl Clone for CostByModelRow
impl Clone for CostByModelRow
Source§fn clone(&self) -> CostByModelRow
fn clone(&self) -> CostByModelRow
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 CostByModelRow
impl Debug for CostByModelRow
Source§impl<'de> Deserialize<'de> for CostByModelRow
impl<'de> Deserialize<'de> for CostByModelRow
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 CostByModelRow
impl RefUnwindSafe for CostByModelRow
impl Send for CostByModelRow
impl Sync for CostByModelRow
impl Unpin for CostByModelRow
impl UnsafeUnpin for CostByModelRow
impl UnwindSafe for CostByModelRow
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