spin_expressions/
provider.rs

1
2
3
4
5
6
7
8
9
10
11
12
use std::fmt::Debug;

use async_trait::async_trait;

use crate::Key;

/// A config provider.
#[async_trait]
pub trait Provider: Debug + Send + Sync {
    /// Returns the value at the given config path, if it exists.
    async fn get(&self, key: &Key) -> anyhow::Result<Option<String>>;
}