pub struct Goal {Show 21 fields
pub chart_data: Option<Vec<GoalChartEntry>>,
pub created_at: String,
pub delta: String,
pub editors: Vec<String>,
pub id: String,
pub ignore_days: Vec<String>,
pub ignore_zero_days: bool,
pub improve_by_percent: Option<f64>,
pub is_enabled: bool,
pub is_inverse: bool,
pub is_snoozed: bool,
pub is_tweeting: bool,
pub languages: Vec<String>,
pub modified_at: String,
pub projects: Vec<String>,
pub range_status: String,
pub range_status_reason: String,
pub seconds: f64,
pub status: String,
pub title: String,
pub goal_type: String,
}Expand description
A single coding goal.
Fields§
§chart_data: Option<Vec<GoalChartEntry>>Per-period chart data (populated when fetching goal details).
created_at: StringISO 8601 timestamp when the goal was created.
delta: StringGoal period (e.g. "day", "week").
editors: Vec<String>Editors this goal is restricted to (empty = all editors).
id: StringUnique goal identifier (UUID).
ignore_days: Vec<String>Days of the week to ignore (e.g. ["saturday", "sunday"]).
ignore_zero_days: boolWhether days with zero activity are excluded from streak calculations.
improve_by_percent: Option<f64>Target improvement percentage over baseline.
is_enabled: boolWhether the goal is active.
is_inverse: boolWhether passing means staying below the target.
is_snoozed: boolWhether the goal is temporarily snoozed.
is_tweeting: boolWhether achievements are tweeted automatically.
languages: Vec<String>Languages this goal is restricted to (empty = all languages).
modified_at: StringISO 8601 timestamp when the goal was last modified.
projects: Vec<String>Projects this goal is restricted to (empty = all projects).
range_status: StringStatus for the most recent period.
range_status_reason: StringHuman-readable explanation of the status.
seconds: f64Target coding seconds per period.
status: StringOverall goal status (e.g. "success", "fail", "ignored").
title: StringHuman-readable goal title.
goal_type: StringGoal type (e.g. "coding").