Skip to main content

Module types

Module types 

Source
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.
CumulativeTotal
Cumulative coding total returned as part of SummaryResponse.
DailyAverage
Daily average returned as part of SummaryResponse.
Goal
A single coding goal.
GoalChartEntry
One data point in a goal’s progress chart.
GoalChartRange
Date range metadata for a GoalChartEntry.
GoalOwner
Minimal user info embedded in a Goal (owner / shared-with).
GoalSharedWith
A user this goal has been shared with.
GoalSubscriber
A subscriber to a goal’s progress emails.
GoalsResponse
Top-level envelope returned by GET /users/current/goals.
GrandTotal
Grand total coding time for a single calendar day.
LeaderboardEntry
A single entry on the leaderboard.
LeaderboardRange
Date range metadata for a LeaderboardResponse.
LeaderboardResponse
Top-level envelope returned by GET /users/current/leaderboards.
LeaderboardUser
Public user information exposed on the leaderboard.
MachineEntry
A machine / hostname time-breakdown entry.
Project
A WakaTime project.
ProjectsResponse
Top-level envelope returned by GET /users/current/projects.
RunningTotal
Aggregated coding totals used on the leaderboard.
Stats
Aggregated coding stats for a predefined time range.
StatsResponse
Top-level envelope returned by GET /users/current/stats/{range}.
SummaryData
Coding activity summary for a single calendar day.
SummaryEntry
A single time-breakdown entry (language, project, editor, OS, etc.).
SummaryRange
Date range metadata attached to a SummaryData entry.
SummaryResponse
Top-level envelope returned by GET /users/current/summaries.
User
A WakaTime user account.
UserResponse
Top-level envelope returned by GET /users/current.