pub struct TrendDataPoint {
pub timestamp: DateTime<Utc>,
pub result_file: String,
pub total_issues: usize,
pub errors: usize,
pub warnings: usize,
pub total_files: usize,
pub files_with_issues: usize,
pub duration_ms: u64,
pub target_paths: Vec<String>,
}Expand description
A single data point in the trend timeline.
Fields§
§timestamp: DateTime<Utc>Timestamp of the run.
result_file: StringPath to the result file.
total_issues: usizeTotal number of issues.
errors: usizeNumber of errors.
warnings: usizeNumber of warnings.
total_files: usizeTotal files processed.
files_with_issues: usizeFiles with issues.
duration_ms: u64Execution duration in milliseconds.
target_paths: Vec<String>Target paths that were scanned (scope identifier).
Implementations§
Source§impl TrendDataPoint
impl TrendDataPoint
Sourcepub fn from_result(
result: &RunResult,
file_path: &Path,
timestamp: DateTime<Utc>,
) -> Self
pub fn from_result( result: &RunResult, file_path: &Path, timestamp: DateTime<Utc>, ) -> Self
Create a data point from a RunResult and file path.
Sourcepub fn scope_key(&self) -> String
pub fn scope_key(&self) -> String
Get a normalized scope key for grouping results. Empty target_paths means “project root” scan.
Sourcepub fn scope_label(&self) -> String
pub fn scope_label(&self) -> String
Get a human-readable scope label.
Trait Implementations§
Source§impl Clone for TrendDataPoint
impl Clone for TrendDataPoint
Source§fn clone(&self) -> TrendDataPoint
fn clone(&self) -> TrendDataPoint
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 TrendDataPoint
impl Debug for TrendDataPoint
Source§impl<'de> Deserialize<'de> for TrendDataPoint
impl<'de> Deserialize<'de> for TrendDataPoint
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 TrendDataPoint
impl RefUnwindSafe for TrendDataPoint
impl Send for TrendDataPoint
impl Sync for TrendDataPoint
impl Unpin for TrendDataPoint
impl UnsafeUnpin for TrendDataPoint
impl UnwindSafe for TrendDataPoint
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