[][src]Trait nest::source::FileSource

pub trait FileSource: Send + Sync + Clone + Debug {
type Value: 'static + TryFrom<Value> + TryInto<Value> + Debug + Clone;
type SerError: 'static + Error;
type DeError: 'static + Error;
    fn extension(&self) -> String;
fn deserialize(&self, string: &str) -> Result<Self::Value, Self::DeError>;
fn serialize(&self, value: &Self::Value) -> Result<String, Self::SerError>; }

Associated Types

type Value: 'static + TryFrom<Value> + TryInto<Value> + Debug + Clone

type SerError: 'static + Error

type DeError: 'static + Error

Loading content...

Required methods

fn extension(&self) -> String

fn deserialize(&self, string: &str) -> Result<Self::Value, Self::DeError>

fn serialize(&self, value: &Self::Value) -> Result<String, Self::SerError>

Loading content...

Implementors

impl FileSource for Hjson[src]

type Value = Value

type SerError = Error

type DeError = Error

impl FileSource for Json[src]

type Value = Value

type SerError = Error

type DeError = Error

impl FileSource for Toml[src]

type Value = Value

type SerError = Error

type DeError = Error

impl FileSource for Yaml[src]

type Value = Value

type SerError = Error

type DeError = Error

Loading content...