ip_allocator_client/lib.rs
1//! IP Allocator API Client
2//!
3//! This crate provides a Rust client for the IP Allocator API.
4//! The client is auto-generated from the OpenAPI specification.
5//!
6//! ## Example
7//!
8//! ```no_run
9//! use ip_allocator_client::Client;
10//!
11//! #[tokio::main]
12//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
13//! let client = Client::new("http://localhost:8000");
14//!
15//! // Borrow an item (immediate return)
16//! let result = client.handlers_ip_borrow(None).await?;
17//! println!("Borrowed item: {:?}", result);
18//!
19//! // Or wait up to 30 seconds for an item to become available
20//! // let result = client.handlers_ip_borrow(Some(30)).await?;
21//!
22//! Ok(())
23//! }
24//! ```
25
26#![allow(clippy::all)]
27#![allow(unused_imports, dead_code)]
28
29include!(concat!(env!("OUT_DIR"), "/codegen.rs"));