metrics_evaluation 0.1.2

Small foot-print parser and solver for (nested) text-based comparisons
Documentation
1
2
3
4
5
6
7
8
9
use async_trait::async_trait;

use crate::value::Value;

#[async_trait]
pub trait AsyncResolver {
    /// Resolves `name` to a [Value] or [None] if there is no value for `name`
    async fn resolve<'a>(&self, name: impl AsRef<str> + Send + 'a) -> Option<&Value>;
}