#[non_exhaustive]pub struct ShareGroupHeartbeatRequest {
pub group_id: GroupId,
pub member_id: StrBytes,
pub member_epoch: i32,
pub rack_id: Option<StrBytes>,
pub subscribed_topic_names: Option<Vec<TopicName>>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 1
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.group_id: GroupId
The group identifier.
Supported API versions: 1
member_id: StrBytes
The member id generated by the consumer. The member id must be kept during the entire lifetime of the consumer process.
Supported API versions: 1
member_epoch: i32
The current member epoch; 0 to join the group; -1 to leave the group.
Supported API versions: 1
rack_id: Option<StrBytes>
null if not provided or if it didn’t change since the last heartbeat; the rack ID of consumer otherwise.
Supported API versions: 1
subscribed_topic_names: Option<Vec<TopicName>>
null if it didn’t change since the last heartbeat; the subscribed topic names otherwise.
Supported API versions: 1
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Sourcepub fn with_group_id(self, value: GroupId) -> Self
pub fn with_group_id(self, value: GroupId) -> Self
Sets group_id
to the passed value.
The group identifier.
Supported API versions: 1
Sourcepub fn with_member_id(self, value: StrBytes) -> Self
pub fn with_member_id(self, value: StrBytes) -> Self
Sets member_id
to the passed value.
The member id generated by the consumer. The member id must be kept during the entire lifetime of the consumer process.
Supported API versions: 1
Sourcepub fn with_member_epoch(self, value: i32) -> Self
pub fn with_member_epoch(self, value: i32) -> Self
Sets member_epoch
to the passed value.
The current member epoch; 0 to join the group; -1 to leave the group.
Supported API versions: 1
Sourcepub fn with_rack_id(self, value: Option<StrBytes>) -> Self
pub fn with_rack_id(self, value: Option<StrBytes>) -> Self
Sets rack_id
to the passed value.
null if not provided or if it didn’t change since the last heartbeat; the rack ID of consumer otherwise.
Supported API versions: 1
Sourcepub fn with_subscribed_topic_names(self, value: Option<Vec<TopicName>>) -> Self
pub fn with_subscribed_topic_names(self, value: Option<Vec<TopicName>>) -> Self
Sets subscribed_topic_names
to the passed value.
null if it didn’t change since the last heartbeat; the subscribed topic names otherwise.
Supported API versions: 1
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§fn clone(&self) -> ShareGroupHeartbeatRequest
fn clone(&self) -> ShareGroupHeartbeatRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more