pub struct AvroParserConfig {
pub update_format: AvroUpdateFormat,
pub schema: Option<String>,
pub skip_schema_id: bool,
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.
registry_config: AvroSchemaRegistryConfigSchema registry configuration.
Trait Implementations§
Source§impl Clone for AvroParserConfig
impl Clone for AvroParserConfig
Source§fn clone(&self) -> AvroParserConfig
fn clone(&self) -> AvroParserConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AvroParserConfig
impl Debug for AvroParserConfig
Source§impl Default for AvroParserConfig
impl Default for AvroParserConfig
Source§fn default() -> AvroParserConfig
fn default() -> AvroParserConfig
Returns the “default value” for a type. Read more
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 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