pub struct PersistedScan {
pub schema_version: u16,
pub scan_id: ScanId,
pub username: String,
pub request_context: Option<ScanRequestContext>,
pub site_count: usize,
pub created_at_ms: u64,
pub summary: Summary,
pub outcomes: Vec<CheckOutcome>,
pub identity_clusters: Vec<IdentityCluster>,
pub elapsed_ms: u64,
}Expand description
Self-contained snapshot of a completed scan. Round-trips losslessly through JSON; tests assert that.
Fields§
§schema_version: u16Version of this persisted scan artifact.
scan_id: ScanIdStable identifier — same value as in-memory ScanId.
username: StringUsername that was scanned.
request_context: Option<ScanRequestContext>Request scope and parked-site diagnostics that explain how this artifact was produced. Missing on scans saved before v1 context support landed.
site_count: usizeTotal number of sites probed in this scan.
created_at_ms: u64Unix epoch milliseconds when the scan was started.
summary: SummaryPer-verdict tally over Self::outcomes.
outcomes: Vec<CheckOutcome>All outcomes, in completion order.
identity_clusters: Vec<IdentityCluster>Deterministic identity candidates derived from found outcomes with structured profile evidence.
elapsed_ms: u64Wall-clock duration, milliseconds.
Implementations§
Source§impl PersistedScan
impl PersistedScan
Sourcepub fn from_finished(
scan_id: ScanId,
username: String,
site_count: usize,
created_at_ms: u64,
finished: FinishedScan,
) -> Self
pub fn from_finished( scan_id: ScanId, username: String, site_count: usize, created_at_ms: u64, finished: FinishedScan, ) -> Self
Build a snapshot from a freshly-completed in-memory scan.
Sourcepub fn with_request_context(self, context: ScanRequestContext) -> Self
pub fn with_request_context(self, context: ScanRequestContext) -> Self
Attach request-scope metadata to this persisted scan.
Trait Implementations§
Source§impl Clone for PersistedScan
impl Clone for PersistedScan
Source§fn clone(&self) -> PersistedScan
fn clone(&self) -> PersistedScan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more