Struct git_scanner::git::GitDetails[][src]

pub struct GitDetails {
    pub commit_day: u64,
    pub users: HashSet<usize>,
    pub commits: u64,
    pub lines_added: u64,
    pub lines_deleted: u64,
}

Git information for a given day, summarized we don’t distinguish multiple changes in a day currently, so if one person changed 1 line and another changed 100 you can’t tell the difference. It is assumed that people work as teams to some degree! This could be revisited if needed, but I’m trying to keep the log size sane Also dates are summarized by “author date” - had to pick author or commit date, and author dates seem more reliable. But it’s named “commit_day” as that’s more understandable

Fields

commit_day: u64

Note this is based on “author date” - commit dates can be all over the place with PRs, rebasing and the like.

users: HashSet<usize>commits: u64lines_added: u64lines_deleted: u64

Trait Implementations

impl Debug for GitDetails[src]

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

impl Eq for GitDetails[src]

impl Ord for GitDetails[src]

impl PartialEq<GitDetails> for GitDetails[src]

impl PartialOrd<GitDetails> for GitDetails[src]

impl Serialize for GitDetails[src]

impl StructuralEq for GitDetails[src]

impl StructuralPartialEq for GitDetails[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[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.