Struct vt3::VtClient [−][src]
pub struct VtClient { /* fields omitted */ }
Implementations
Retrieves information about the latest comments.
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); vt.get_comments(Some("10"), Some("tag%3Amalware"), None);
Retrieve a comment information.
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); let comment_id = "u-011915942db556bbab5137f761efe61fed2b00598fea900360b800b193a7bf31-d94d7c8a"; vt.get_comment(comment_id);
Get the report of a given Domain
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); println!("{:?}", vt.domain_info("google.com"))
Retrieve file scan reports id: SHA-256, SHA-1 or MD5 identifying the file
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); vt.file_info("44d88612fea8a8f36de82e1278abb02f");
Upload and scan a file
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); println!("{:?}", vt.file_scan("data/eicar.com.txt"));
Re-submit/Re-scan already submitted files id: SHA-256, SHA-1 or MD5 identifying the file
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); vt.file_rescan("44d88612fea8a8f36de82e1278abb02f");
Get the report of a given IP Address
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); println!("{:?}", vt.ip_info("192.168.2.1"));
Scan an URL
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); let url = "https://example.com"; println!("{:?}", vt.url_scan(url));
Re-analyse/Re-Scan an URL
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); let url = "https://example.com"; println!("{:?}", vt.url_scan(url));
Get the report of a given Url
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); let resource = "https://www.example.com"; println!("{:?}", vt.url_info(resource));
Get the report of a given Url by its resource id. Generally you can first
submit a url for scanning, and then, get the resource_id (data.id
)
and then url_info_by_id(data.id)
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); let resource = "https://www.example.com"; let resource_id = vt.url_scan(resource).unwrap(); println!("{:?}", vt.url_info_by_id(&resource_id.data.id))
Creates a new VirusTotal API Client to access the VirusTotal REST API v3
Example usage
use vt3::VtClient; let vt_client = VtClient::new("YOUR API KEY");
Sets a new user-agent that from the default
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VtClient
impl UnwindSafe for VtClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more