#[non_exhaustive]pub struct Stats {Show 31 fields
pub best_day: Option<BestDay>,
pub categories: Vec<SummaryEntry>,
pub created_at: String,
pub daily_average: f64,
pub daily_average_including_other_language: f64,
pub days_including_holidays: u32,
pub days_minus_holidays: u32,
pub editors: Vec<SummaryEntry>,
pub end: String,
pub holidays: u32,
pub human_readable_daily_average: String,
pub human_readable_range: String,
pub human_readable_total: String,
pub id: String,
pub is_up_to_date: bool,
pub languages: Vec<SummaryEntry>,
pub machines: Vec<MachineEntry>,
pub modified_at: Option<String>,
pub operating_systems: Vec<SummaryEntry>,
pub percent_calculated: u32,
pub projects: Vec<SummaryEntry>,
pub range: String,
pub start: String,
pub status: String,
pub timeout: u32,
pub timezone: String,
pub total_seconds: f64,
pub total_seconds_including_other_language: f64,
pub user_id: String,
pub username: String,
pub writes_only: bool,
}Expand description
Aggregated coding stats for a predefined time range.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.best_day: Option<BestDay>The day with the most coding activity.
categories: Vec<SummaryEntry>Time broken down by activity category.
created_at: StringISO 8601 timestamp when this stats snapshot was created.
daily_average: f64Average daily coding time in seconds.
daily_average_including_other_language: f64Average daily coding time including “other language” seconds.
days_including_holidays: u32Number of days in the range including weekends/holidays.
days_minus_holidays: u32Number of working days in the range.
editors: Vec<SummaryEntry>Time broken down by editor.
end: StringISO 8601 end of the stats range.
holidays: u32Number of holiday days detected in the range.
human_readable_daily_average: StringHuman-readable average daily coding time.
human_readable_range: StringHuman-readable description of the range (e.g. "last 7 days").
human_readable_total: StringHuman-readable total coding time.
id: StringUnique stats record identifier.
is_up_to_date: boolWhether the stats snapshot is up to date.
languages: Vec<SummaryEntry>Time broken down by programming language.
machines: Vec<MachineEntry>Time broken down by machine.
modified_at: Option<String>ISO 8601 timestamp when this snapshot was last modified.
operating_systems: Vec<SummaryEntry>Time broken down by operating system.
percent_calculated: u32How fully computed the stats are (0–100).
projects: Vec<SummaryEntry>Time broken down by project.
range: StringNamed range (e.g. "last_7_days", "last_30_days").
start: StringISO 8601 start of the stats range.
status: StringComputation status (e.g. "ok", "pending_update").
timeout: u32Heartbeat timeout in minutes used for this calculation.
timezone: StringIANA timezone used when computing the stats.
total_seconds: f64Total coding time in seconds.
total_seconds_including_other_language: f64Total coding time including “other language” in seconds.
user_id: StringOwner user identifier (UUID).
username: StringOwner username.
writes_only: boolWhether the account is in write-only mode.