[−][src]Crate abuseipdb
AbuseIPDB API Client.
use abuseipdb::Client; use std::net::Ipv4Addr; async fn example() { let my_ip = Ipv4Addr::new(127, 0, 0, 1).into(); let client = Client::new("<API-KEY>"); let response = client.check(my_ip, None, false).await.unwrap(); println!("abuseConfidenceScore: {}", response.data.abuse_confidence_score); }
Structs
AddressAbuse | |
ApiError | Represents an error returned by AbuseIPDB via the API. |
BlockCheck | |
BlockCheckReport | |
Check | |
CheckReport | |
Client | The AbuseIPDB client. |
ClientBuilder | A builder to create a configured AbuseIPDB client. |
RateLimit | The rate limit information returned from a request to AbuseIPDB. |
Response | Wrapper type for successful API responses with rate limit and meta information. |
Enums
Category | AbuseIPDB attack categories. |
Error | Represents a failure while making a request to AbuseIPDB. |
Constants
DEFAULT_BASE_URL | |
DEFAULT_USER_AGENT |
Type Definitions
Blacklist |