Struct vt3::VtClient [−][src]
pub struct VtClient<'a> { /* fields omitted */ }
Implementations
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"))
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");
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
pub fn vzip(self) -> V