//! Official Rust client for the [ipdata.info](https://ipdata.info) IP
//! geolocation, ASN, and threat-intelligence API.
//!
//! ```no_run
//! use ipdatainfo::Client;
//!
//! let client = Client::new(); // free tier; or Client::builder().api_key("KEY").build()
//! let info = client.lookup("8.8.8.8").unwrap();
//! println!("{:?} {:?}", info.city, info.country);
//! ```

mod client;
mod error;
mod models;

pub use client::{Client, ClientBuilder, DEFAULT_BASE_URL, PRO_BASE_URL};
pub use error::Error;
pub use models::{
    AsnBrief, Connection, Currency, Flag, GeoInfo, IpInfo, Network, Security, ThreatMatch,
    TimeZone,
};
