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§
- Address
Abuse - ApiError
- Represents an error returned by AbuseIPDB via the API.
- Block
Check - Block
Check Report - Check
- Check
Report - Client
- The AbuseIPDB client.
- Client
Builder - A builder to create a configured AbuseIPDB client.
- Rate
Limit - The rate limit information returned from a request to AbuseIPDB.
- Response
- Wrapper type for successful API responses with rate limit and meta information.