pub struct FileAuthorship {
pub path: PathBuf,
pub contributions: Vec<AuthorContribution>,
}Available on crate feature
vcs-git only.Expand description
One file’s complete authorship, the unit the aggregate consumes.
Only files with at least one in-window contribution are represented; a tracked-but-inactive file carries no authorship signal and is excluded from the bus-factor denominator (its inclusion would orphan trivially and skew the result).
Fields§
§path: PathBufRepository-relative path (drives directory grouping).
contributions: Vec<AuthorContribution>Per-developer contributions to this file (non-empty).
Trait Implementations§
Source§impl Clone for FileAuthorship
impl Clone for FileAuthorship
Source§fn clone(&self) -> FileAuthorship
fn clone(&self) -> FileAuthorship
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileAuthorship
impl Debug for FileAuthorship
impl Eq for FileAuthorship
Source§impl PartialEq for FileAuthorship
impl PartialEq for FileAuthorship
impl StructuralPartialEq for FileAuthorship
Auto Trait Implementations§
impl Freeze for FileAuthorship
impl RefUnwindSafe for FileAuthorship
impl Send for FileAuthorship
impl Sync for FileAuthorship
impl Unpin for FileAuthorship
impl UnsafeUnpin for FileAuthorship
impl UnwindSafe for FileAuthorship
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.