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

/// Describes a generic _source_ of configuration properties.
pub trait Source {
    /// Collect all configuration properties available from this source and return
    /// a top-level Value (which we expected to be a Table).
    fn collect(&self) -> Result<Value>;
}