Struct interchange::avro::AvroEncoder [−][src]
pub struct AvroEncoder {
schema_generator: AvroSchemaGenerator,
key_schema_id: Option<i32>,
value_schema_id: i32,
}
Expand description
Manages encoding of Avro-encoded bytes.
Fields
schema_generator: AvroSchemaGenerator
key_schema_id: Option<i32>
value_schema_id: i32
Implementations
pub fn new(
schema_generator: AvroSchemaGenerator,
key_schema_id: Option<i32>,
value_schema_id: i32
) -> Self
pub fn encode_key_unchecked(&self, schema_id: i32, row: Row) -> Vec<u8>ⓘ
Trait Implementations
fn encode_key_unchecked(&self, row: Row) -> Vec<u8>ⓘ
Auto Trait Implementations
impl RefUnwindSafe for AvroEncoder
impl Send for AvroEncoder
impl Sync for AvroEncoder
impl Unpin for AvroEncoder
impl UnwindSafe for AvroEncoder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more