pub struct Contributor {Show 16 fields
pub name: String,
pub login: Option<String>,
pub avatar: Option<String>,
pub url: Option<String>,
pub first: i64,
pub last: i64,
pub commits: u32,
pub bot: bool,
pub group: Option<String>,
pub members: u32,
pub member_names: Vec<String>,
pub m0: i32,
pub months: Vec<u32>,
pub co_months: Vec<u32>,
pub co_commits: u32,
pub month_groups: Option<Vec<Option<String>>>,
}Expand description
One merged contributor identity, ready for rendering. Also reused for affiliation aggregates, where one “row” stands for a whole organisation.
Fields§
§name: String§login: Option<String>§avatar: Option<String>§url: Option<String>§first: i64§last: i64§commits: u32§bot: bool§group: Option<String>§members: u32Number of people behind this row (1 for an individual; N for an affiliation aggregate).
member_names: Vec<String>Names of the largest contributors in an aggregate (for tooltips).
m0: i32Month index (months since 1970-01) of the first entry in months.
months: Vec<u32>Commits per calendar month, from m0 through the last active month.
Includes co-authored commits (full credit); co_months is the subset
so the interactive page can subtract it when co-authors are toggled off.
co_months: Vec<u32>Co-authored commits per month, aligned to m0 (a subset of months).
co_commits: u32Of commits, how many the person was a co-author on (not the author).
month_groups: Option<Vec<Option<String>>>Per-month affiliation, aligned to m0, when the person has time-bounded
manual affiliations (so their row is coloured by org over time). None
when a single affiliation applies throughout (the usual case).
Trait Implementations§
Source§impl Clone for Contributor
impl Clone for Contributor
Source§fn clone(&self) -> Contributor
fn clone(&self) -> Contributor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more