Crates.io | abuseipdb |
lib.rs | abuseipdb |
version | 0.2.1 |
source | src |
created_at | 2019-11-29 16:04:06.049066 |
updated_at | 2020-03-30 12:37:44.246926 |
description | AbuseIPDB client |
homepage | https://github.com/avitex/rust-abuseipdb |
repository | https://github.com/avitex/rust-abuseipdb |
max_upload_size | |
id | 185319 |
size | 83,290 |
Rust client for the AbuseIPDB API
Documentation hosted on docs.rs.
abuseipdb = "0.2.1"
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);
}