pub struct FileFreshness {
pub relative_path: String,
pub score: f64,
pub days_since_modified: Option<i64>,
pub coupling_penalty: f64,
pub importance_weight: f64,
}Expand description
Result of freshness analysis for a single file.
Fields§
§relative_path: StringFile path relative to the project root.
score: f64Freshness score for this file (0.0-1.0), after time decay and coupling penalty.
days_since_modified: Option<i64>Days since the file was last modified in git, if known.
coupling_penalty: f64Score reduction applied due to code-doc coupling drift.
importance_weight: f64Weight multiplier based on file importance (e.g. CLAUDE.md = 3.0).
Trait Implementations§
Source§impl Clone for FileFreshness
impl Clone for FileFreshness
Source§fn clone(&self) -> FileFreshness
fn clone(&self) -> FileFreshness
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 FileFreshness
impl Debug for FileFreshness
Auto Trait Implementations§
impl Freeze for FileFreshness
impl RefUnwindSafe for FileFreshness
impl Send for FileFreshness
impl Sync for FileFreshness
impl Unpin for FileFreshness
impl UnsafeUnpin for FileFreshness
impl UnwindSafe for FileFreshness
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more