pub struct OwnershipMetrics {
pub bus_factor: u32,
pub contributor_count: u32,
pub top_contributor: ContributorEntry,
pub recent_contributors: Vec<ContributorEntry>,
pub suggested_reviewers: Vec<ContributorEntry>,
pub declared_owner: Option<String>,
pub unowned: Option<bool>,
pub ownership_state: OwnershipState,
pub drift: bool,
pub drift_reason: Option<String>,
}Expand description
Ownership metrics for a hotspot file, derived from git history and CODEOWNERS declarations.
Fields§
§bus_factor: u32Minimum contributors covering half the file’s commits.
contributor_count: u32Distinct contributors touching the file in the window.
top_contributor: ContributorEntryContributor with the largest commit share.
recent_contributors: Vec<ContributorEntry>Contributors active in the recent window; omitted when empty.
suggested_reviewers: Vec<ContributorEntry>Contributors best positioned to review changes; omitted when empty.
declared_owner: Option<String>Owner declared in CODEOWNERS, when one matches the file.
unowned: Option<bool>Whether no owner could be resolved; null when ownership resolution
did not run.
ownership_state: OwnershipStateOwnership lifecycle state.
drift: boolTrue when recent contributions drift away from the declared ownership.
drift_reason: Option<String>Human-readable explanation of the drift, when drifting.
Trait Implementations§
Source§impl Clone for OwnershipMetrics
impl Clone for OwnershipMetrics
Source§impl Debug for OwnershipMetrics
impl Debug for OwnershipMetrics
Source§impl<'de> Deserialize<'de> for OwnershipMetrics
impl<'de> Deserialize<'de> for OwnershipMetrics
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
Auto Trait Implementations§
impl Freeze for OwnershipMetrics
impl RefUnwindSafe for OwnershipMetrics
impl Send for OwnershipMetrics
impl Sync for OwnershipMetrics
impl Unpin for OwnershipMetrics
impl UnsafeUnpin for OwnershipMetrics
impl UnwindSafe for OwnershipMetrics
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