summaryrefslogtreecommitdiffstats
path: root/src/source.rs
blob: 5db362e2c933d803e9716ed680182f40bedb7e98 (plain)
1
2
3
4
5
6
7
8
9
10
use error::*;
use value::Value;
use std::collections::HashMap;

/// Describes a generic _source_ of configuration properties.
pub trait Source {
    /// Collect all configuration properties available from this source and return
    /// a HashMap.
    fn collect(&self) -> Result<HashMap<String, Value>>;
}