pub struct Author {
    pub name: String,
    pub total_commits: usize,
    pub total_curses: usize,
    pub curses: HashMap<String, usize>,
}
Expand description

An author of a git commit.

Fields§

§name: String

Name of the author.

§total_commits: usize

Total count of commits by author.

§total_curses: usize

Total count of curses used by author.

§curses: HashMap<String, usize>

HashMap of all the curses the author used.

Implementations§

Initialize a new author from a name.

Update a previously used curse or add a new one.

git-anger-management knows if you’ve been naughty or not

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.