ip_api4rs/model/mod.rs
1//! This module contains all the predefined models for the application.
2//! You can create your own models to customize the request.
3//!
4//! # Supplying your own struct - example
5//! ```
6//! use serde::{Deserialize, Serialize};
7//! use ip_api4rs::IpApiClient;
8//! use ip_api4rs::client::AsyncIpApi;
9//!
10//! #[derive(Deserialize, Serialize)]
11//! struct Custom {
12//! #[serde(rename = "query")]
13//! ip: String,
14//! country: String,
15//! }
16//! #[tokio::main]
17//! #[allow(clippy::tabs_in_doc_comments)]
18//! async fn main() {
19//! let client = IpApiClient::new();
20//! let result = client.query_api::<Custom>("8.8.8.8").await;
21//! }
22//! ```
23
24pub mod ip_response;