Skip to main content

Crate hindclaw_client

Crate hindclaw_client 

Source
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§

ByteStream
Untyped byte stream used for both success and error responses.
Client
Client for Hindclaw API
ResponseValue
Typed value returned by generated client methods.

Enums§

Error
Error produced by generated client methods.

Traits§

ClientInfo
Interface for which an implementation is generated for all clients.