#[non_exhaustive]pub struct OffsetCommitRequest {
pub group_id: GroupId,
pub generation_id_or_member_epoch: i32,
pub member_id: StrBytes,
pub group_instance_id: Option<StrBytes>,
pub retention_time_ms: i64,
pub topics: Vec<OffsetCommitRequestTopic>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-9
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 unique group identifier.
Supported API versions: 0-9
generation_id_or_member_epoch: i32
The generation of the group if using the classic group protocol or the member epoch if using the consumer protocol.
Supported API versions: 1-9
member_id: StrBytes
The member ID assigned by the group coordinator.
Supported API versions: 1-9
group_instance_id: Option<StrBytes>
The unique identifier of the consumer instance provided by end user.
Supported API versions: 7-9
retention_time_ms: i64
The time period in ms to retain the offset.
Supported API versions: 2-4
topics: Vec<OffsetCommitRequestTopic>
The topics to commit offsets for.
Supported API versions: 0-9
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl OffsetCommitRequest
impl OffsetCommitRequest
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 unique group identifier.
Supported API versions: 0-9
Sourcepub fn with_generation_id_or_member_epoch(self, value: i32) -> Self
pub fn with_generation_id_or_member_epoch(self, value: i32) -> Self
Sets generation_id_or_member_epoch
to the passed value.
The generation of the group if using the classic group protocol or the member epoch if using the consumer protocol.
Supported API versions: 1-9
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 assigned by the group coordinator.
Supported API versions: 1-9
Sourcepub fn with_group_instance_id(self, value: Option<StrBytes>) -> Self
pub fn with_group_instance_id(self, value: Option<StrBytes>) -> Self
Sets group_instance_id
to the passed value.
The unique identifier of the consumer instance provided by end user.
Supported API versions: 7-9
Sourcepub fn with_retention_time_ms(self, value: i64) -> Self
pub fn with_retention_time_ms(self, value: i64) -> Self
Sets retention_time_ms
to the passed value.
The time period in ms to retain the offset.
Supported API versions: 2-4
Sourcepub fn with_topics(self, value: Vec<OffsetCommitRequestTopic>) -> Self
pub fn with_topics(self, value: Vec<OffsetCommitRequestTopic>) -> Self
Sets topics
to the passed value.
The topics to commit offsets for.
Supported API versions: 0-9
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§impl Clone for OffsetCommitRequest
impl Clone for OffsetCommitRequest
Source§fn clone(&self) -> OffsetCommitRequest
fn clone(&self) -> OffsetCommitRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OffsetCommitRequest
impl Debug for OffsetCommitRequest
Source§impl Decodable for OffsetCommitRequest
Available on crate feature broker
only.
impl Decodable for OffsetCommitRequest
broker
only.Source§impl Default for OffsetCommitRequest
impl Default for OffsetCommitRequest
Source§impl Encodable for OffsetCommitRequest
Available on crate feature client
only.
impl Encodable for OffsetCommitRequest
client
only.Source§impl From<OffsetCommitRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<OffsetCommitRequest> for RequestKind
messages_enums
only.Source§fn from(value: OffsetCommitRequest) -> RequestKind
fn from(value: OffsetCommitRequest) -> RequestKind
Source§impl HeaderVersion for OffsetCommitRequest
impl HeaderVersion for OffsetCommitRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for OffsetCommitRequest
impl Message for OffsetCommitRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange>
const DEPRECATED_VERSIONS: Option<VersionRange>
Source§impl PartialEq for OffsetCommitRequest
impl PartialEq for OffsetCommitRequest
Source§impl Request for OffsetCommitRequest
Available on crate features client
and broker
only.
impl Request for OffsetCommitRequest
client
and broker
only.