pub struct CrateSourceScanReport {
pub profile: ScanProfile,
pub crate_name: String,
pub crate_version: Option<String>,
pub generated_at_utc: String,
pub root: PathBuf,
pub source_sha256: String,
pub vcs_commit: Option<String>,
pub path_in_vcs: Option<String>,
pub files_scanned: usize,
pub matched_heuristics: Vec<HeuristicSourceMatch>,
pub caveat: &'static str,
/* private fields */
}Expand description
Result of scanning a source tree for DSFB heuristic provenance motifs.
Fields§
§profile: ScanProfileLegacy interpretation hint retained for compatibility.
DSFB now emits one canonical broad audit. This field no longer changes the evidence set, score denominator, or primary report structure.
crate_name: StringCrate name if found in Cargo.toml, else the directory name.
crate_version: Option<String>Crate version if found in Cargo.toml.
generated_at_utc: StringUTC timestamp at which the scan report was generated.
root: PathBufRoot directory that was scanned.
source_sha256: StringDeterministic SHA-256 digest of the scanned crate tree.
vcs_commit: Option<String>VCS commit hint from .cargo_vcs_info.json if present.
path_in_vcs: Option<String>Path inside the source VCS if present.
files_scanned: usizeNumber of source files scanned.
matched_heuristics: Vec<HeuristicSourceMatch>Matched heuristic motifs sorted by hit count.
caveat: &'static strCaveat describing what this scan means.
Trait Implementations§
Source§impl Clone for CrateSourceScanReport
impl Clone for CrateSourceScanReport
Source§fn clone(&self) -> CrateSourceScanReport
fn clone(&self) -> CrateSourceScanReport
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 CrateSourceScanReport
impl RefUnwindSafe for CrateSourceScanReport
impl Send for CrateSourceScanReport
impl Sync for CrateSourceScanReport
impl Unpin for CrateSourceScanReport
impl UnsafeUnpin for CrateSourceScanReport
impl UnwindSafe for CrateSourceScanReport
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