Function apache_avro::to_avro_datum_schemata
source · pub fn to_avro_datum_schemata<T: Into<Value>>(
schema: &Schema,
schemata: Vec<&Schema>,
value: T
) -> AvroResult<Vec<u8>>
Expand description
Encode a compatible value (implementing the ToAvro
trait) into Avro format, also
performing schema validation.
If the provided schema
is incomplete then its dependencies must be
provided in schemata