summaryrefslogtreecommitdiffstats
path: root/src/source.rs
diff options
context:
space:
mode:
authorRyan Leckey <ryan@launchbadge.com>2017-06-01 23:22:04 -0700
committerRyan Leckey <ryan@launchbadge.com>2017-06-01 23:22:04 -0700
commitbfc44c331a77d8c341c076e72df5ed0b56fbd422 (patch)
treec757723957be6b880d1e0d8d26ae2b1c9c606ed2 /src/source.rs
parent4357840e95f3646494ddeea4aae12425dfab2db8 (diff)
Move things around and get some tests in place
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/source.rs b/src/source.rs
new file mode 100644
index 0000000..7519438
--- /dev/null
+++ b/src/source.rs
@@ -0,0 +1,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>;
+}