[][src]Struct credit::Statistics

pub struct Statistics {
    pub commentors: HashMap<String, usize>,
    pub code_contributors: HashMap<String, usize>,
    pub contributor_commits: HashMap<String, usize>,
    pub all_issues: usize,
    pub all_closed_issues: usize,
    pub issues_with_responses: usize,
    pub issues_with_official_responses: usize,
    pub issue_first_resp_time: Option<ResponseTimes>,
    pub issue_official_first_resp_time: Option<ResponseTimes>,
    pub all_prs: usize,
    pub prs_with_responses: usize,
    pub prs_with_official_responses: usize,
    pub pr_first_resp_time: Option<ResponseTimes>,
    pub pr_official_first_resp_time: Option<ResponseTimes>,
    pub prs_merged: usize,
    pub prs_closed_without_merging: usize,
    pub pr_merge_time: Option<ResponseTimes>,
}

Various compiled statistics regarding contributions to a Github repository.

For the relevant fields below, an "official" response is any made by a repository Owner, an organization Member, or an invited Collaborator.

Fields

commentors: HashMap<String, usize>

All issue/PR commentors.

code_contributors: HashMap<String, usize>

All users who had PRs merged.

contributor_commits: HashMap<String, usize>

The commits-in-merged-PRs count for each user.

all_issues: usize

The count of all issues, opened or closed.

all_closed_issues: usize

How many of the issues have been closed?

issues_with_responses: usize

All issues that have been responded to in some way.

issues_with_official_responses: usize

All issues that have been responded to "officially".

issue_first_resp_time: Option<ResponseTimes>

How long does it take for someone to respond to an issue?

issue_official_first_resp_time: Option<ResponseTimes>

How long does it take for an "official" response?

all_prs: usize

The count of all PRs, opened or closed.

prs_with_responses: usize

All PRs that have been responded to in some way.

prs_with_official_responses: usize

All PRs that have been responded to officially.

pr_first_resp_time: Option<ResponseTimes>

How long does it take for someone to respond to a PR?

pr_official_first_resp_time: Option<ResponseTimes>

How long does it take for an "official" response to a PR?

prs_merged: usize

How many PRs were merged?

prs_closed_without_merging: usize

The count of all PRs which were closed with being merged.

pr_merge_time: Option<ResponseTimes>

How long does it take for PRs to be merged?

Implementations

impl Statistics[src]

pub fn report(self, repo: &str, commits: bool) -> String[src]

Trait Implementations

impl Debug for Statistics[src]

impl<'de> Deserialize<'de> for Statistics[src]

impl Serialize for Statistics[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]