Hydrate

Trait Hydrate 

Source
pub trait Hydrate {
    type Output;

    // Required method
    fn hydrate(
        self,
        file: &Arc<PathBuf>,
        buffer: &String,
    ) -> Result<Self::Output, Error>;
}
Expand description

Hydrate is used to translate a json_spanned::Spanned type to a Result type. The ContextSpanned type is used by validation.

It is possible to error when merging if a field is defined as multiple, incompatible data structures.

Required Associated Types§

Required Methods§

Source

fn hydrate( self, file: &Arc<PathBuf>, buffer: &String, ) -> Result<Self::Output, Error>

Implementors§