Function apache_avro::from_avro_datum_schemata
source ยท pub fn from_avro_datum_schemata<R: Read>(
writer_schema: &Schema,
schemata: Vec<&Schema>,
reader: &mut R,
reader_schema: Option<&Schema>,
) -> AvroResult<Value>
Expand description
Decode a Value
encoded in Avro format given the provided Schema
and anything implementing io::Read
to read from.
If the writer schema is incomplete, i.e. contains Schema::Ref
s then it will use the provided
schemata to resolve any dependencies.
In case a reader Schema
is provided, schema resolution will also be performed.