Trait apache_avro::types::ToAvro

source ·
pub trait ToAvro {
    // Required method
    fn avro(self) -> Value;
}
👎Deprecated since 0.11.0: Please use Value::from, Into::into or value.into() instead
Expand description

Any structure implementing the ToAvro trait will be usable from a Writer.

Required Methods§

source

fn avro(self) -> Value

👎Deprecated since 0.11.0: Please use Value::from, Into::into or value.into() instead

Transforms this value into an Avro-compatible Value.

Implementors§

source§

impl<T: Into<Value>> ToAvro for T