pub trait ConvertValue<T>where
Self: Sized,{
// Required methods
fn convert(&self, convert: &Option<Conversion>) -> Result<T>;
fn unconvert(val: &T) -> Result<Self>;
}Expand description
Trait to implement conversion from the raw (h)json data to structured data. This is used to implement variable
substitution in Subst.
Required Methods§
Sourcefn convert(&self, convert: &Option<Conversion>) -> Result<T>
fn convert(&self, convert: &Option<Conversion>) -> Result<T>
Convert from fraw data to structured data (i.e. deserialize). Optionally provide
an indication of how the data should first be parsed and how it should be converted
to the type T.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.