Expand description
WakaTime API response types.
All types derive Debug, Clone, serde::Serialize, and
serde::Deserialize. Unknown JSON fields are silently ignored via
#[serde(deny_unknown_fields)] is not used — this keeps the client
forward-compatible with new API fields.
Structs§
- BestDay
- The single best (most productive) day in a stats range.
- City
- Geographic location returned on user profiles and leaderboards.
- Cumulative
Total - Cumulative coding total returned as part of
SummaryResponse. - Daily
Average - Daily average returned as part of
SummaryResponse. - Goal
- A single coding goal.
- Goal
Chart Entry - One data point in a goal’s progress chart.
- Goal
Chart Range - Date range metadata for a
GoalChartEntry. - Goal
Owner - Minimal user info embedded in a
Goal(owner / shared-with). - Goal
Shared With - A user this goal has been shared with.
- Goal
Subscriber - A subscriber to a goal’s progress emails.
- Goals
Response - Top-level envelope returned by
GET /users/current/goals. - Grand
Total - Grand total coding time for a single calendar day.
- Leaderboard
Entry - A single entry on the leaderboard.
- Leaderboard
Range - Date range metadata for a
LeaderboardResponse. - Leaderboard
Response - Top-level envelope returned by
GET /users/current/leaderboards. - Leaderboard
User - Public user information exposed on the leaderboard.
- Machine
Entry - A machine / hostname time-breakdown entry.
- Project
- A
WakaTimeproject. - Projects
Response - Top-level envelope returned by
GET /users/current/projects. - Running
Total - Aggregated coding totals used on the leaderboard.
- Stats
- Aggregated coding stats for a predefined time range.
- Stats
Response - Top-level envelope returned by
GET /users/current/stats/{range}. - Summary
Data - Coding activity summary for a single calendar day.
- Summary
Entry - A single time-breakdown entry (language, project, editor, OS, etc.).
- Summary
Range - Date range metadata attached to a
SummaryDataentry. - Summary
Response - Top-level envelope returned by
GET /users/current/summaries. - User
- A
WakaTimeuser account. - User
Response - Top-level envelope returned by
GET /users/current.