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");

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))

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);

Abort a RetroHunt job

Example Usage

use vt3::VtClient;

let vt = VtClient::new("Your API Key");
vt.abort_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");

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.