[−][src]Struct virustotal::VtClient
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]
Trait Implementations
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,