spin_expressions/
provider.rs

1use std::fmt::Debug;
2
3use async_trait::async_trait;
4
5use crate::Key;
6
7/// A config provider.
8#[async_trait]
9pub trait Provider: Debug + Send + Sync {
10    /// Returns the value at the given config path, if it exists.
11    async fn get(&self, key: &Key) -> anyhow::Result<Option<String>>;
12}