apifreaks/lib.rs
1//! # APIFreaks APIs SDK
2//!
3//! The official Rust SDK for the APIFreaks APIs.
4//!
5//! ## Getting Started
6//!
7//! ```rust
8//! use apifreaks::prelude::*;
9//!
10//! #[tokio::main]
11//! async fn main() {
12//! let config = ClientConfig {
13//! ..Default::default()
14//! };
15//! let client = ApiFreaks::new(config).expect("Failed to build client");
16//! client
17//! .geolocation_lookup(
18//! &GeolocationLookupQueryRequest {
19//! api_key: "apiKey".to_string(),
20//! format: None,
21//! ip: None,
22//! lang: None,
23//! fields: None,
24//! excludes: None,
25//! include: None,
26//! },
27//! None,
28//! )
29//! .await;
30//! }
31//! ```
32//!
33//! ## Modules
34//!
35//! - [`api`] - Core API types and models
36//! - [`client`] - Client implementations
37//! - [`config`] - Configuration options
38//! - [`core`] - Core utilities and infrastructure
39//! - [`error`] - Error types and handling
40//! - [`prelude`] - Common imports for convenience
41
42pub mod api;
43pub mod client;
44pub mod config;
45pub mod core;
46pub mod environment;
47pub mod error;
48pub mod prelude;
49
50pub use api::*;
51pub use client::*;
52pub use config::*;
53pub use core::*;
54pub use environment::*;
55pub use error::{ApiError, BuildError};