avro_rs

Function from_value

Source
pub fn from_value<'de, D: Deserialize<'de>>(
    value: &'de Value,
) -> Result<D, Error>
Expand description

Interpret a Value as an instance of type D.

This conversion can fail if the structure of the Value does not match the structure expected by D.