Trait mz_avro::types::ToAvro

source ·
pub trait ToAvro {
    // Required method
    fn avro(self) -> Value;
}
Expand description

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

Required Methods§

source

fn avro(self) -> Value

Transforms this value into an Avro-compatible Value.

Implementations on Foreign Types§

source§

impl ToAvro for Value

source§

fn avro(self) -> Value

source§

impl ToAvro for bool

source§

fn avro(self) -> Value

source§

impl ToAvro for f32

source§

fn avro(self) -> Value

source§

impl ToAvro for f64

source§

fn avro(self) -> Value

source§

impl ToAvro for i32

source§

fn avro(self) -> Value

source§

impl ToAvro for i64

source§

fn avro(self) -> Value

source§

impl ToAvro for ()

source§

fn avro(self) -> Value

source§

impl ToAvro for usize

source§

fn avro(self) -> Value

source§

impl ToAvro for String

source§

fn avro(self) -> Value

source§

impl<'a> ToAvro for &'a str

source§

fn avro(self) -> Value

source§

impl<'a> ToAvro for &'a [u8]

source§

fn avro(self) -> Value

source§

impl<'a, T> ToAvro for BTreeMap<&'a str, T>
where T: ToAvro,

source§

fn avro(self) -> Value

source§

impl<T> ToAvro for BTreeMap<String, T>
where T: ToAvro,

source§

fn avro(self) -> Value

Implementors§

source§

impl ToAvro for Codec

source§

impl ToAvro for mz_avro::types::Value

source§

impl<'a> ToAvro for Record<'a>