pub fn from_avro_datum<R>(
    schema: &Schema,
    reader: &mut R
) -> Result<Value, Error>where
    R: AvroRead,
Expand description

Decode a Value encoded in Avro format given its Schema and anything implementing io::Read to read from.

In case a reader Schema is provided, schema resolution will also be performed.

NOTE This function has a quite small niche of usage and does NOT take care of reading the header and consecutive data blocks; use Reader if you don’t know what you are doing, instead.