Coult

Rust vault secret retriever

Example

```rust use coult::{Config, Vault}; use serde::Deserialize;

[derive(Debug, Deserialize)]

struct Secret { password: String, }

[tokio::main]

async fn main() { tracingsubscriber::fmt::init(); let config = Config::new( "http".tostring(), # Vault Http Protocol http/https "127.0.0.1".tostring(), # Vault Host 8200, # Port "config/path".tostring(), # Secret Path "vault-plaintext-root-tokenzqwe".tostring(), # Vault Token ); let vault = Vault::new(config).await.unwrap(); let data = vault.getsecret::().await.unwrap(); println!("{:?}", data) }

```