[][src]Struct virustotal::VtClient

pub struct VtClient<'a> { /* fields omitted */ }

Methods

impl<'a> VtClient<'a>[src]

pub fn scan_url(self, target_url: &str) -> UrlScanResponse[src]

Scan an URL

Example

use virustotal::*;
 
let vt = VtClient::new("Your API Key");
let url = "https://example.com";
vt.scan_url(url);

pub fn report_url(self, resource: &str) -> UrlReportResponse[src]

Retrieve URL scan reports

Example

use virustotal::*;

let vt = VtClient::new("Your API Key");
vt.report_url(resource);

impl<'a> VtClient<'a>[src]

pub fn repot_domain(self, domain: &'a str) -> DomainReportResponse[src]

Retrieves a domain report

Example

use virustotal::*;
 
let vt = VtClient::new("Your API Key");
vt.repot_domain("alicemacs.com") # This is my domain :P

impl<'a> VtClient<'a>[src]

pub fn report_ip_address(self, ip_address: &str) -> IpAddressReportResponse[src]

Retrieve an IP address report

Example

use virustotal::*;
 
let vt = VtClient::new("Your API Key");
vt.report_ip_address("192.168.2.1");

impl<'a> VtClient<'a>[src]

pub fn scan_file(self, filename: &str) -> FileScanResponse[src]

Upload and scan a file

Example

use virustotal::*;

let vt = VtClient::new("Your API Key");
vt.scan_file("eicar.txt")

pub fn report_file(self, resource: &str) -> FileReportResponse[src]

Retrieve file scan reports

Example

use virustotal::*;

let vt = VtClient::new("Your API Key");
vt.report_file("eicar.txt")

pub fn rescan_file(self, resource: &str) -> FileRescanResponse[src]

Rescanning already submitted files

Example

use virustotal::*;

let vt = VtClient::new("Your API Key");
vt.rescan(resource);

impl<'a> VtClient<'a>[src]

pub fn put(self, resource: &str, comment: &str) -> CommentPutResponse[src]

Make comments on file and URLs

Example

use virustotal::*;
 
let vt = VtClient::new("Your API Key");
let resource = "the resource you want to put comments";
let comment = "This is a test";
vt.put(resource, comment);

pub fn get(self, resource: &str) -> CommentGetResponse[src]

Get comments for a file or URL

Example

use virustotal::*;
 
let vt = VtClient::new("Your API Key");
let resource = "the resource you want to get comments";
vt.get(comment);

impl<'a> VtClient<'a>[src]

pub fn new(api_key: &'a str) -> Self[src]

Trait Implementations

impl<'a> Clone for VtClient<'a>[src]

impl<'a> Copy for VtClient<'a>[src]

Auto Trait Implementations

impl<'a> Send for VtClient<'a>

impl<'a> Sync for VtClient<'a>

impl<'a> Unpin for VtClient<'a>

impl<'a> UnwindSafe for VtClient<'a>

impl<'a> RefUnwindSafe for VtClient<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err