pub trait ConsumerGroupMetadata:
Send
+ Sync
+ Debug
+ 'static {
// Required methods
fn group_id(&self) -> &str;
fn generation_id(&self) -> i32;
fn member_id(&self) -> &str;
fn group_instance_id(&self) -> Option<&str>;
}Expand description
A metadata struct containing the consumer group information.
Note: Any change to this class is considered public and requires a KIP.
§Translation notes
A trait, as in Kafka 5.0: see
Consumer::group_metadata.
Required Methods§
Sourcefn generation_id(&self) -> i32
fn generation_id(&self) -> i32
Sourcefn group_instance_id(&self) -> Option<&str>
fn group_instance_id(&self) -> Option<&str>
The group instance ID, if the consumer is a static member.
§Returns
The group instance ID, or empty if this is a dynamic member