Skip to main content

HeaderBuilder

Trait HeaderBuilder 

Source
pub trait HeaderBuilder {
    // Required method
    fn build_header(&self) -> Vec<u8> ⓘ;
}
Expand description

This trait represents that an object is able to construct an Avro message header.

It is implemented for some known header types already. If you need a header type that is not already included here, then you can create your own struct and implement this trait.

Required Methods§

Source

fn build_header(&self) -> Vec<u8> ⓘ

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§