pub struct AccountSnapshot {
pub account_id: u64,
pub repositories: Vec<RepositoryObservation>,
pub contribution_history: Option<ContributionHistory>,
pub language_colors: Option<BTreeMap<String, Option<LanguageColor>>>,
}Expand description
GitHub observations supplied by the caller, readable and writable through Serde.
The caller supplies the owned and GitHub-recognized contributed repositories; only public, non-fork ones affect language shares, so a public-only collection is enough. Parsing verifies the format, not collection completeness. Older snapshots remain usable for language shares but have no contribution history or language colors. Language colors require contribution history (version 3). Serialization selects the format from the available observations. Unknown fields, unsupported versions, and missing fields within a supported format are rejected.
Fields§
§account_id: u64GitHub’s stable numeric ID for the account.
repositories: Vec<RepositoryObservation>Every repository observation the collector supplied, owned or contributed to.
contribution_history: Option<ContributionHistory>Daily contributions through an observation date; None before snapshot version 2.
language_colors: Option<BTreeMap<String, Option<LanguageColor>>>GitHub’s color for each observed language name; None means GitHub has no color.