Expand description
Contains functions to filter and group TimeLog.
Functionsยง
- filter_
by_ date - Filter the
TimeLogby date and return an iterator. The dates are both inclusive. - filter_
by_ last_ n_ days - Returns the time logs in the last X days. The number of days is specified as
Duration. 1 day is the current day, 2 days is today and yesterday. - group_
by_ filter - Groups a list of nodes by a given filter. Returns an Iterator over a
BTreeMap. - group_
by_ label - Group the
TimeLogs by labels and return an iterator. Note that items with multiple labels are included multiple times. Items with no labels are included in the labelother_label, if set. - group_
by_ milestone - Filter the
TimeLogby milestone and returns an iterator over(Option<&Milestone>, Vec<&TimeLog>). - group_
by_ trackable_ item - Group the
TimeLogby trackable item (Issue/MR) and return an iterator. - group_
by_ type - Group the
TimeLogby type (Issue/MR) and return an iterator. Will return aStringcontaining the type name. BecauseTrackableItemKindis an enum where each variant carries data, it is not sensible to group directly on this type, because if the data inside is different, it counts as a different element. - group_
by_ user - Groups a slice of nodes by their user and returns a iterator over a
BTreeMap. - total_
time_ spent - Returns the total time spent on the project.
- total_
time_ spent_ by_ user - Returns the total time spent on the project by every user.