Expand description
IP Allocator API Client
This crate provides a Rust client for the IP Allocator API. The client is auto-generated from the OpenAPI specification.
§Example
use ip_allocator_client::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new("http://localhost:8000");
// Borrow an item
let result = client.handlers_ip_borrow().await?;
println!("Borrowed item: {:?}", result);
Ok(())
}Modules§
- prelude
- Items consumers will typically use such as the Client.
- types
- Types used as operation parameters and responses.
Structs§
- Byte
Stream - Untyped byte stream used for both success and error responses.
- Client
- Client for ip-allocator-webserver
- Response
Value - Typed value returned by generated client methods.
Enums§
- Error
- Error produced by generated client methods.