openbao 1.0.2

Secure, typed, async Rust SDK for OpenBao
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Environment-based authenticated client example.

use openbao::{Client, Result};

#[tokio::main]
async fn main() -> Result<()> {
    let client = Client::from_env_with_token()?;
    let health = client.sys().health().await?;
    let _sealed = health.sealed;
    Ok(())
}