pub struct AvroParserConfig {
pub update_format: AvroUpdateFormat,
pub schema: Option<String>,
pub skip_schema_id: bool,
pub cdc_field: Option<String>,
pub registry_config: AvroSchemaRegistryConfig,
}Expand description
Avro output format configuration.
Fields§
§update_format: AvroUpdateFormatFormat used to encode data change events in this stream.
The default value is ‘raw’.
schema: Option<String>Avro schema used to encode all records in this stream, specified as a JSON-encoded string.
When this property is set, the connector uses the provided schema instead of
retrieving the schema from the schema registry. This setting is mutually exclusive
with registry_urls.
skip_schema_id: booltrue if serialized messages only contain raw data without the
header carrying schema ID.
The default value is false.
cdc_field: Option<String>Optional name of the field that holds the operation of each record.
The field must be a string or enum with one of these values:
"I": insert"U": upsert"D": delete
If not set, every record is an insert.
Only works with the raw update format.
registry_config: AvroSchemaRegistryConfigSchema registry configuration.
Trait Implementations§
Source§impl Clone for AvroParserConfig
impl Clone for AvroParserConfig
Source§impl Debug for AvroParserConfig
impl Debug for AvroParserConfig
Source§impl Default for AvroParserConfig
impl Default for AvroParserConfig
Source§impl<'de> Deserialize<'de> for AvroParserConfig
impl<'de> Deserialize<'de> for AvroParserConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AvroParserConfig
impl Serialize for AvroParserConfig
Auto Trait Implementations§
impl Freeze for AvroParserConfig
impl RefUnwindSafe for AvroParserConfig
impl Send for AvroParserConfig
impl Sync for AvroParserConfig
impl Unpin for AvroParserConfig
impl UnsafeUnpin for AvroParserConfig
impl UnwindSafe for AvroParserConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more