pub struct KafkaConsumerConfig {
pub client: KafkaClientConfig,
pub group_id: String,
pub topics: Vec<String>,
pub auto_offset_reset: String,
}Expand description
Reads events from one or more Apache Kafka topics using a consumer group.
Fields§
§client: KafkaClientConfigShared Kafka client connection settings.
group_id: StringKafka consumer group identifier.
topics: Vec<String>List of Kafka topics to consume from.
auto_offset_reset: StringWhere to begin consuming when no committed offset exists.
Trait Implementations§
Source§impl Clone for KafkaConsumerConfig
impl Clone for KafkaConsumerConfig
Source§fn clone(&self) -> KafkaConsumerConfig
fn clone(&self) -> KafkaConsumerConfig
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 KafkaConsumerConfig
impl Debug for KafkaConsumerConfig
Source§impl<'de> Deserialize<'de> for KafkaConsumerConfig
impl<'de> Deserialize<'de> for KafkaConsumerConfig
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 HasFieldsMetadata for KafkaConsumerConfig
impl HasFieldsMetadata for KafkaConsumerConfig
Source§fn fields_metadata() -> Vec<FieldMetadata>
fn fields_metadata() -> Vec<FieldMetadata>
Returns a list of metadata for all fields in the struct.
Source§impl PartialEq for KafkaConsumerConfig
impl PartialEq for KafkaConsumerConfig
Source§impl Serialize for KafkaConsumerConfig
impl Serialize for KafkaConsumerConfig
Source§impl SourceConfig for KafkaConsumerConfig
impl SourceConfig for KafkaConsumerConfig
impl StructuralPartialEq for KafkaConsumerConfig
Auto Trait Implementations§
impl Freeze for KafkaConsumerConfig
impl RefUnwindSafe for KafkaConsumerConfig
impl Send for KafkaConsumerConfig
impl Sync for KafkaConsumerConfig
impl Unpin for KafkaConsumerConfig
impl UnsafeUnpin for KafkaConsumerConfig
impl UnwindSafe for KafkaConsumerConfig
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