avro_rs::types

Trait 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