pub fn save(paths: &Paths, report: &ScanReport) -> Result<PathBuf>Expand description
Persist a ScanReport under <paths.home>/snapshots/<UTC-ts>.json
and return the path written.
§Errors
Returns crate::Error::Io if the snapshot dir cannot be created or
written, or crate::Error::Json on serialization failure.