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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Author
impl RefUnwindSafe for Author
impl Send for Author
impl Sync for Author
impl Unpin for Author
impl UnwindSafe for Author
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more