pub struct GitDetails {
pub commit_day: u64,
pub users: HashSet<usize>,
pub commits: u64,
pub lines_added: u64,
pub lines_deleted: u64,
}
Expand description
Git information for a given day, summarized we don’t distinguish multiple changes in a day currently, so if one person changed 1 line and another changed 100 you can’t tell the difference. It is assumed that people work as teams to some degree! This could be revisited if needed, but I’m trying to keep the log size sane Also dates are summarized by “author date” - had to pick author or commit date, and author dates seem more reliable. But it’s named “commit_day” as that’s more understandable
Fields§
§commit_day: u64
Note this is based on “author date” - commit dates can be all over the place with PRs, rebasing and the like.
users: HashSet<usize>
§commits: u64
§lines_added: u64
§lines_deleted: u64
Trait Implementations§
Source§impl Debug for GitDetails
impl Debug for GitDetails
Source§impl<'de> Deserialize<'de> for GitDetails
impl<'de> Deserialize<'de> for GitDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for GitDetails
impl Ord for GitDetails
Source§impl PartialEq for GitDetails
impl PartialEq for GitDetails
Source§impl PartialOrd for GitDetails
impl PartialOrd for GitDetails
Source§impl Serialize for GitDetails
impl Serialize for GitDetails
impl Eq for GitDetails
impl StructuralPartialEq for GitDetails
Auto Trait Implementations§
impl Freeze for GitDetails
impl RefUnwindSafe for GitDetails
impl Send for GitDetails
impl Sync for GitDetails
impl Unpin for GitDetails
impl UnwindSafe for GitDetails
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