pub struct ConsumerGroupMetadata {
pub group_id: String,
pub generation_id: i32,
pub member_id: String,
pub group_instance_id: Option<String>,
}Expand description
The identity a consumer presents to a transactional producer for KIP-447
offset-commit fencing. Mirrors the JVM’s
org.apache.kafka.clients.consumer.ConsumerGroupMetadata.
Fields§
§group_id: StringThe consumer group id.
generation_id: i32Classic-group generation id, or — for a KIP-848 next-gen group — the
member epoch. Sent verbatim in TxnOffsetCommitRequest.generation_id
(matches the JVM wire convention); the coordinator interprets it per
group kind.
member_id: StringThe member id assigned by the coordinator at join time. Empty for a simple consumer (manual assignment, no group membership).
group_instance_id: Option<String>group.instance.id for static members; None for dynamic members.
Implementations§
Trait Implementations§
Source§impl Clone for ConsumerGroupMetadata
impl Clone for ConsumerGroupMetadata
Source§fn clone(&self) -> ConsumerGroupMetadata
fn clone(&self) -> ConsumerGroupMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConsumerGroupMetadata
impl Debug for ConsumerGroupMetadata
impl Eq for ConsumerGroupMetadata
Source§impl PartialEq for ConsumerGroupMetadata
impl PartialEq for ConsumerGroupMetadata
Source§fn eq(&self, other: &ConsumerGroupMetadata) -> bool
fn eq(&self, other: &ConsumerGroupMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConsumerGroupMetadata
Auto Trait Implementations§
impl Freeze for ConsumerGroupMetadata
impl RefUnwindSafe for ConsumerGroupMetadata
impl Send for ConsumerGroupMetadata
impl Sync for ConsumerGroupMetadata
impl Unpin for ConsumerGroupMetadata
impl UnsafeUnpin for ConsumerGroupMetadata
impl UnwindSafe for ConsumerGroupMetadata
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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