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(()) }