pub struct ReportContext {
pub threshold_pct: f64,
pub scope: Scope,
pub sensor_schema: bool,
pub max_findings: Option<usize>,
pub diff_file_path: Option<String>,
pub base_ref: Option<String>,
pub head_ref: Option<String>,
pub lcov_paths: Vec<String>,
}Expand description
Context needed to materialize reports from EvalOutput.
Fields§
§threshold_pct: f64Coverage threshold used for the run.
scope: ScopeEvaluation scope (added or touched).
sensor_schema: boolEmit sensor.report.v1 with capability metadata.
max_findings: Option<usize>Optional findings cap for standard-mode reports.
diff_file_path: Option<String>Path to a diff file, if available.
base_ref: Option<String>Base ref in git-diff mode.
head_ref: Option<String>Head ref in git-diff mode.
lcov_paths: Vec<String>LCOV paths to include in report metadata.
Trait Implementations§
Source§impl Clone for ReportContext
impl Clone for ReportContext
Source§fn clone(&self) -> ReportContext
fn clone(&self) -> ReportContext
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 moreAuto Trait Implementations§
impl Freeze for ReportContext
impl RefUnwindSafe for ReportContext
impl Send for ReportContext
impl Sync for ReportContext
impl Unpin for ReportContext
impl UnsafeUnpin for ReportContext
impl UnwindSafe for ReportContext
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