[][src]Function iocutil::virustotal::scan_id

pub fn scan_id(sample: SampleHash, datetime: impl Into<DateTime<Utc>>) -> String

scan_id for virustotal You can use this to get a report at the specific time.

Example

use iocutil::prelude::*;

let client = VirusTotalClient::default();

let sample =  SampleHash::new("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855").unwrap();
let sid = scan_id(sample, at!(1, weeks ago));

// let report_at_one_week_ago = client.query_filereport(sid).unwrap();