pub struct KafkaOutputConfig {
pub kafka_options: BTreeMap<String, String>,
pub topic: String,
pub headers: Vec<KafkaHeader>,
pub log_level: Option<KafkaLogLevel>,
pub initialization_timeout_secs: u32,
pub fault_tolerance: Option<KafkaOutputFtConfig>,
pub kafka_service: Option<String>,
pub region: Option<String>,
}Expand description
Configuration for writing data to a Kafka topic with OutputTransport.
Fields§
§kafka_options: BTreeMap<String, String>Options passed directly to rdkafka.
See librdkafka options
used to configure the Kafka producer.
topic: StringTopic to write to.
headers: Vec<KafkaHeader>Kafka headers to be added to each message produced by this connector.
log_level: Option<KafkaLogLevel>The log level of the client.
If not specified, the log level will be calculated based on the global
log level of the log crate.
initialization_timeout_secs: u32Maximum timeout in seconds to wait for the endpoint to connect to a Kafka broker.
Defaults to 60.
fault_tolerance: Option<KafkaOutputFtConfig>Optional configuration for fault tolerance.
kafka_service: Option<String>If specified, this service is used to provide defaults for the Kafka options.
region: Option<String>The AWS region to use while connecting to AWS Managed Streaming for Kafka (MSK).
Implementations§
Trait Implementations§
Source§impl Clone for KafkaOutputConfig
impl Clone for KafkaOutputConfig
Source§fn clone(&self) -> KafkaOutputConfig
fn clone(&self) -> KafkaOutputConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KafkaOutputConfig
impl Debug for KafkaOutputConfig
Source§impl<'de> Deserialize<'de> for KafkaOutputConfig
impl<'de> Deserialize<'de> for KafkaOutputConfig
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 PartialEq for KafkaOutputConfig
impl PartialEq for KafkaOutputConfig
Source§impl Serialize for KafkaOutputConfig
impl Serialize for KafkaOutputConfig
Source§impl<'__s> ToSchema<'__s> for KafkaOutputConfig
impl<'__s> ToSchema<'__s> for KafkaOutputConfig
impl Eq for KafkaOutputConfig
impl StructuralPartialEq for KafkaOutputConfig
Auto Trait Implementations§
impl Freeze for KafkaOutputConfig
impl RefUnwindSafe for KafkaOutputConfig
impl Send for KafkaOutputConfig
impl Sync for KafkaOutputConfig
impl Unpin for KafkaOutputConfig
impl UnsafeUnpin for KafkaOutputConfig
impl UnwindSafe for KafkaOutputConfig
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.