[][src]Trait nest::source::Source

pub trait Source: Send + Sync + Clone + Debug {
    fn id(&self) -> String;
fn read(&self, path: PathBuf) -> Result<Value, Error>;
fn write(&self, path: PathBuf, value: &Value) -> Result<(), Error>; }

Required methods

fn id(&self) -> String

fn read(&self, path: PathBuf) -> Result<Value, Error>

fn write(&self, path: PathBuf, value: &Value) -> Result<(), Error>

Loading content...

Implementors

impl<A> Source for A where
    A: FileSource + Send + Sync + Clone + Debug,
    <<A as FileSource>::Value as TryInto<Value>>::Error: Error,
    <<A as FileSource>::Value as TryFrom<Value>>::Error: Error
[src]

Loading content...