Struct git_anger_management::Author
source · 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§
source§impl Author
impl Author
sourcepub fn update_occurrence(&mut self, curse: &str)
pub fn update_occurrence(&mut self, curse: &str)
Update a previously used curse or add a new one.
sourcepub fn is_naughty(&self) -> bool
pub fn is_naughty(&self) -> bool
git-anger-management
knows if you’ve been naughty or not