Struct vt3::VtClient [−][src]
pub struct VtClient<'a> { /* fields omitted */ }
Implementations
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");
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))
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"))
Get all or limited RetroHunt jobs
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); vt.get_jobs(Some("10"), None, None);
Get RetroHunt job by ID
Example Usage
use vt3::VtClient; let vt = VtClient::new("Your API Key"); vt.get_job_by_id(1);
Create/Submit a RetroHunt job
Example Usage
use vt3::{VtClient, SubmitJobRoot}; let vt = VtClient::new("Your API Key"); let mut data = SubmitJobRoot::default(); vt.create_job(&data);
Delete RetroHunt job
Example
use vt3::VtClient; let vt = VtClient::new("Your API Key"); vt.delete_job(1);
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<'a> RefUnwindSafe for VtClient<'a>
impl<'a> UnwindSafe for VtClient<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more