ipwhois_rs 0.1.0

Rust wrapper for the ipwhois.io geolocation API
Documentation
1
2
3
4
5
6
7
8
9
10
use thiserror::Error; 

#[derive(Error, Debug)]
pub enum IpWhoisError {
    #[error("HTTP request failed: {0}")]
    RequestError(#[from] reqwest::Error),

    #[error("API returned an error: {0}")]
    ApiError(String),
}