malwaredb-virustotal 0.0.8

Logic and datatypes for interacting with VirusTotal
Documentation
pub mod flags;

use serde::{Deserialize, Serialize};

/// Response from VirusTotal for a file search
/// https://virustotal.readme.io/v2.0/reference/file-search
#[derive(Debug, Deserialize, Serialize)]
pub struct FileSearchResponse {
    /// Response status code
    pub response_code: u32,

    /// Offset, used for paginating search results
    pub offset: String,

    /// Hashes of files which match the search criteria. Maximum of 300 results.
    pub hashes: Vec<String>,

    /// Original query
    #[serde(default)]
    pub query: String,
}