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

A simple representation of a git repository.

Fields§

§name: String

Name of the repository.

§total_commits: usize

Count of the total amount of commits in the repository.

§total_curses: usize

Count of the total amount of curses used in the commits.

§curses: HashMap<String, usize>

HashMap of all the naughty words used by the authors.

§authors: HashMap<String, Author>

HashMap of all the authors that have been committed.

Implementations§

Creates a new and empty repository.

Checks if an author exists and creates a new author if she/he doesn’t exist.

Counts all the naughty words used by authors.

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.