summaryrefslogtreecommitdiffstats
path: root/lib/src/source.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-03-08 11:09:37 -0800
committerRyan Leckey <leckey.ryan@gmail.com>2017-03-08 11:09:37 -0800
commit2dc6a74b84825f65142c1fa7d3e67cd4f35ee3cb (patch)
tree23b21f732efbb215498db6debf6dbaee3af7e94f /lib/src/source.rs
parentc9ee1568fe212e4c352ec1afc52db44b34348fcd (diff)
Initial work on deep serde integration
Diffstat (limited to 'lib/src/source.rs')
-rw-r--r--lib/src/source.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/src/source.rs b/lib/src/source.rs
new file mode 100644
index 0000000..7519438
--- /dev/null
+++ b/lib/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>;
+}