| Crates.io | ip-api-wrapper |
| lib.rs | ip-api-wrapper |
| version | 0.1.0 |
| created_at | 2025-01-10 11:56:28.778378+00 |
| updated_at | 2025-01-10 11:56:28.778378+00 |
| description | Simple API Wrapper IP-API.com |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1511198 |
| size | 42,547 |
Simple code
#[tokio::main]
async fn main() {
let client = Client::new();
let ip = "8.8.8.8";
let info_full = IPInfo::get_info(&client, ip).await.unwrap();
println!("{:#?}", info_full.as_field);
}