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,
}Expand description
A function ranked by runtime traffic, complexity, and ownership risk.
Fields§
§id: StringDeterministic content hash of shape fallow:importance:<hash>.
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.
Trait Implementations§
Source§impl Clone for ImportanceEntry
impl Clone for ImportanceEntry
Source§fn clone(&self) -> ImportanceEntry
fn clone(&self) -> ImportanceEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ImportanceEntry
impl Debug for ImportanceEntry
Source§impl<'de> Deserialize<'de> for ImportanceEntry
impl<'de> Deserialize<'de> for ImportanceEntry
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 ImportanceEntry
impl RefUnwindSafe for ImportanceEntry
impl Send for ImportanceEntry
impl Sync for ImportanceEntry
impl Unpin for ImportanceEntry
impl UnsafeUnpin for ImportanceEntry
impl UnwindSafe for ImportanceEntry
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