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