pub struct KafkaAttributes {Show 13 fields
pub bootstrap_servers: String,
pub topic_name: String,
pub compression_type: String,
pub batch_size: i32,
pub linger_ms: i32,
pub max_request_size: i32,
pub timeout_sec: i32,
pub max_retry: i32,
pub retry_interval_sec: i32,
pub username: Option<String>,
pub password: Option<String>,
pub protocol: Option<String>,
pub mechanisms: Option<String>,
}Expand description
Configuration for delivering stream batches to a Kafka topic.
Fields§
§bootstrap_servers: StringComma-separated list of Kafka broker addresses (host:port).
topic_name: StringDestination topic.
compression_type: StringCompression codec applied to produced messages (e.g. none, gzip).
batch_size: i32Maximum number of messages grouped per produce request.
linger_ms: i32Milliseconds the producer waits to batch additional messages.
max_request_size: i32Maximum request size in bytes.
timeout_sec: i32Request timeout in seconds.
max_retry: i32Maximum number of retry attempts for a failed produce.
retry_interval_sec: i32Seconds to wait between retry attempts.
username: Option<String>Optional SASL username.
password: Option<String>Optional SASL password.
protocol: Option<String>Optional security protocol (e.g. SASL_SSL).
mechanisms: Option<String>Optional SASL mechanism (e.g. PLAIN, SCRAM-SHA-256).
Trait Implementations§
Source§impl Clone for KafkaAttributes
impl Clone for KafkaAttributes
Source§fn clone(&self) -> KafkaAttributes
fn clone(&self) -> KafkaAttributes
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 KafkaAttributes
impl Debug for KafkaAttributes
Source§impl<'de> Deserialize<'de> for KafkaAttributes
impl<'de> Deserialize<'de> for KafkaAttributes
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
Auto Trait Implementations§
impl Freeze for KafkaAttributes
impl RefUnwindSafe for KafkaAttributes
impl Send for KafkaAttributes
impl Sync for KafkaAttributes
impl Unpin for KafkaAttributes
impl UnsafeUnpin for KafkaAttributes
impl UnwindSafe for KafkaAttributes
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