Expand description
Hindclaw API Client
A Rust client library for the Hindclaw access control API.
§Example
use hindclaw_client::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new("http://localhost:8888");
// List users
let users = client.list_users().await?;
println!("Found {} users", users.into_inner().len());
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 Hindclaw API
- Response
Value - Typed value returned by generated client methods.
Enums§
- Error
- Error produced by generated client methods.
Traits§
- Client
Info - Interface for which an implementation is generated for all clients.