pub struct ProjectStatsInfo {
pub project_name: String,
pub session_count: usize,
pub message_count: usize,
pub tokens_input: u64,
pub tokens_output: u64,
pub tokens_cache_read: u64,
pub tokens_cache_write: u64,
pub cost_usd: f64,
pub last_activity: Option<i64>,
}Expand description
Project-wide usage / cost totals, aggregated across every session (archived included) belonging to a project.
Returned by the ProjectStats request. No per-model breakdown in v1.
Fields§
§project_name: String§session_count: usize§message_count: usize§tokens_input: u64§tokens_output: u64§tokens_cache_read: u64§tokens_cache_write: u64§cost_usd: f64§last_activity: Option<i64>Unix-seconds timestamp of the most recent message in any of the
project’s sessions, or None if the project has no messages yet.
Trait Implementations§
Source§impl Clone for ProjectStatsInfo
impl Clone for ProjectStatsInfo
Source§fn clone(&self) -> ProjectStatsInfo
fn clone(&self) -> ProjectStatsInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 ProjectStatsInfo
impl Debug for ProjectStatsInfo
Source§impl Default for ProjectStatsInfo
impl Default for ProjectStatsInfo
Source§fn default() -> ProjectStatsInfo
fn default() -> ProjectStatsInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectStatsInfo
impl<'de> Deserialize<'de> for ProjectStatsInfo
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 ProjectStatsInfo
impl RefUnwindSafe for ProjectStatsInfo
impl Send for ProjectStatsInfo
impl Sync for ProjectStatsInfo
impl Unpin for ProjectStatsInfo
impl UnsafeUnpin for ProjectStatsInfo
impl UnwindSafe for ProjectStatsInfo
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