blob: bc1dd407fab1b7a7552a28c9426dc651b4b8601f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use std::error::Error;
use std::borrow::Cow;
use value::Value;
pub trait Source {
fn get<'a>(&self, key: &str) -> Option<Cow<'a, Value>>;
}
pub trait SourceBuilder {
fn build(&self) -> Result<Box<Source>, Box<Error>>;
}
|