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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more