Expand description
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§
- Represents an error returned by AbuseIPDB via the API.
- The AbuseIPDB client.
- A builder to create a configured AbuseIPDB client.
- The rate limit information returned from a request to AbuseIPDB.
- Wrapper type for successful API responses with rate limit and meta information.
Enums§
- AbuseIPDB attack categories.
- Represents a failure while making a request to AbuseIPDB.