Struct interchange::avro::AvroSchemaGenerator [−][src]
pub struct AvroSchemaGenerator {
value_columns: Vec<(ColumnName, ColumnType)>,
key_info: Option<KeyInfo>,
writer_schema: Schema,
}
Expand description
Generates key and value Avro schemas
Fields
value_columns: Vec<(ColumnName, ColumnType)>
key_info: Option<KeyInfo>
writer_schema: Schema
Implementations
pub fn new(
key_fullname: Option<&str>,
value_fullname: Option<&str>,
key_desc: Option<RelationDesc>,
value_desc: RelationDesc,
include_transaction: bool
) -> Self
pub fn value_columns(&self) -> &[(ColumnName, ColumnType)]ⓘ
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AvroSchemaGenerator
impl Send for AvroSchemaGenerator
impl Sync for AvroSchemaGenerator
impl Unpin for AvroSchemaGenerator
impl UnwindSafe for AvroSchemaGenerator
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