Function mz_avro::from_avro_datum

source ·
pub fn from_avro_datum<R: AvroRead>(
    schema: &Schema,
    reader: &mut R
) -> Result<Value, Error>
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.