diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2017-03-08 11:09:37 -0800 |
---|---|---|
committer | Ryan Leckey <leckey.ryan@gmail.com> | 2017-03-08 11:09:37 -0800 |
commit | 2dc6a74b84825f65142c1fa7d3e67cd4f35ee3cb (patch) | |
tree | 23b21f732efbb215498db6debf6dbaee3af7e94f /lib/src/source.rs | |
parent | c9ee1568fe212e4c352ec1afc52db44b34348fcd (diff) |
Initial work on deep serde integration
Diffstat (limited to 'lib/src/source.rs')
-rw-r--r-- | lib/src/source.rs | 9 |
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>; +} |