#[non_exhaustive]pub struct ImportanceEntry {
pub id: String,
pub file: String,
pub function: String,
pub line: u32,
pub invocations: u64,
pub cyclomatic: u32,
pub owner_count: u32,
pub importance_score: f64,
pub reason: String,
pub identity: Option<FunctionIdentity>,
}Expand description
A function ranked by runtime traffic, complexity, and ownership risk.
Marked #[non_exhaustive] in 0.6.0: downstream Rust consumers must
stop using struct-literal construction. The wire shape is unchanged.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringDeterministic content hash of shape fallow:importance:<hash>.
Continues to ship through 0.6 alongside ImportanceEntry::identity.
file: StringPath to the source file, relative to Request::project_root.
function: StringFunction name as reported by the static analyzer.
line: u321-indexed line the function starts on.
invocations: u64Raw invocation count used for the traffic component.
cyclomatic: u32Cyclomatic complexity supplied by the CLI health pipeline.
owner_count: u32Number of CODEOWNERS owners; 0 means ownership is absent or unowned.
importance_score: f640-100 importance score. The formula is intentionally simple and documented by the sidecar implementation so it can be tuned later.
reason: StringTemplated one-sentence explanation, not free-form model text.
identity: Option<FunctionIdentity>Canonical function identity introduced in 0.6.0. Optional for forward-compat with 0.5-shape sidecars.
Trait Implementations§
Source§impl Clone for ImportanceEntry
impl Clone for ImportanceEntry
Source§fn clone(&self) -> ImportanceEntry
fn clone(&self) -> ImportanceEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more