1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # ConfigVault Rust SDK
//!
//! Async Rust client for the [ConfigVault](https://github.com/sitien173/config-vault) API.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use configvault_sdk::ConfigVaultClient;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = ConfigVaultClient::new("http://localhost:5000", "your-api-key");
//!
//! let value = client.get("production/database/url").await?;
//! println!("Got: {value}");
//!
//! let exists = client.exists("production/database/url").await?;
//! println!("Exists: {exists}");
//!
//! let configs = client.list("production").await?;
//! println!("Configs: {configs:?}");
//!
//! let health = client.health().await?;
//! println!("Health: {}", health.status);
//!
//! Ok(())
//! }
//! ```
// Convenient re-exports of the most commonly used types
pub use ConfigVaultClient;
pub use ConfigVaultError;
pub use ;
pub use ConfigWatcher;