Struct phishtank::PhishtankClient [−][src]
pub struct PhishtankClient { /* fields omitted */ }
Implementations
Lookup the given url to see if it exists in phishtank db
Example Usage
use phishtank::PhishtankClient; let client = PhishtankClient::new("Your API Key"); let res = client.lookup("https://example.com/");
Get the database for saving & local lookup’s
Example Usage
use phishtank::PhishtankClient; let client = PhishtankClient::new("Your API Key"); let res = client.download_db();
Creates a new Phishtank API Client to access the Phishtank API endpoint
Example usage
use phishtank::PhishtankClient; let client = PhishtankClient::new("YOUR API KEY");
Sets a new user-agent that from the default
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PhishtankClient
impl Send for PhishtankClient
impl Sync for PhishtankClient
impl Unpin for PhishtankClient
impl UnwindSafe for PhishtankClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more