pub struct KWConsumerConf {
pub config: HashMap<String, String>,
pub log_level: Option<RDKafkaLogLevel>,
pub group_id: GroupID,
pub brokers: String,
pub topics: Vec<String>,
}
Fields§
§config: HashMap<String, String>
§log_level: Option<RDKafkaLogLevel>
§group_id: GroupID
§brokers: String
§topics: Vec<String>
Implementations§
Source§impl KWConsumerConf
impl KWConsumerConf
pub fn new<B, G>(brokers: B, group_id: G) -> Self
pub fn set_topics<I, T>(self, topics: T) -> Self
pub fn set_config<K, V>(self, config: HashMap<K, V>) -> Self
pub fn append_config<K, V>(self, key: K, value: V) -> Self
pub fn set_log_level(self, log_level: RDKafkaLogLevel) -> Self
Trait Implementations§
Source§impl Clone for KWConsumerConf
impl Clone for KWConsumerConf
Source§fn clone(&self) -> KWConsumerConf
fn clone(&self) -> KWConsumerConf
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 moreAuto Trait Implementations§
impl Freeze for KWConsumerConf
impl RefUnwindSafe for KWConsumerConf
impl Send for KWConsumerConf
impl Sync for KWConsumerConf
impl Unpin for KWConsumerConf
impl UnwindSafe for KWConsumerConf
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