#[non_exhaustive]pub struct TxnOffsetCommitRequest {
pub transactional_id: String,
pub group_id: String,
pub producer_id: i64,
pub producer_epoch: i16,
pub generation_id: i32,
pub member_id: String,
pub group_instance_id: Option<String>,
pub topics: Vec<TxnOffsetCommitRequestTopic>,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
TxnOffsetCommitRequest, versions 0-5.
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.transactional_id: StringThe ID of the transaction.
group_id: StringThe ID of the group.
producer_id: i64The current producer ID in use by the transactional ID.
producer_epoch: i16The current epoch associated with the producer ID.
generation_id: i32The generation of the consumer.
member_id: StringThe member ID assigned by the group coordinator.
group_instance_id: Option<String>The unique identifier of the consumer instance provided by end user.
topics: Vec<TxnOffsetCommitRequestTopic>Each topic that we want to commit offsets for.
unknown_tagged_fields: Vec<RawTaggedField>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl TxnOffsetCommitRequest
impl TxnOffsetCommitRequest
Sourcepub const MIN_VERSION: i16 = 0
pub const MIN_VERSION: i16 = 0
The lowest schema version this snapshot can speak.
Sourcepub const MAX_VERSION: i16 = 5
pub const MAX_VERSION: i16 = 5
The highest schema version this snapshot can speak.
Sourcepub fn encode(
&self,
buf: &mut impl BufMut,
version: i16,
) -> Result<(), EncodeError>
pub fn encode( &self, buf: &mut impl BufMut, version: i16, ) -> Result<(), EncodeError>
Encode this TxnOffsetCommitRequest at version.
Sourcepub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
pub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
Decode one TxnOffsetCommitRequest, bounding allocation by the default
Limits derived from buf’s remaining length.
Sourcepub fn decode_with_limits(
buf: &mut impl Buf,
version: i16,
limits: Limits,
) -> Result<Self, DecodeError>
pub fn decode_with_limits( buf: &mut impl Buf, version: i16, limits: Limits, ) -> Result<Self, DecodeError>
Decode one TxnOffsetCommitRequest under limits.
Sourcepub fn decode_with_budget(
buf: &mut impl Buf,
version: i16,
budget: &mut Budget,
) -> Result<Self, DecodeError>
pub fn decode_with_budget( buf: &mut impl Buf, version: i16, budget: &mut Budget, ) -> Result<Self, DecodeError>
Decode one TxnOffsetCommitRequest against an existing budget.
Trait Implementations§
Source§impl Clone for TxnOffsetCommitRequest
impl Clone for TxnOffsetCommitRequest
Source§impl Debug for TxnOffsetCommitRequest
impl Debug for TxnOffsetCommitRequest
Source§impl Default for TxnOffsetCommitRequest
impl Default for TxnOffsetCommitRequest
Source§impl Message for TxnOffsetCommitRequest
impl Message for TxnOffsetCommitRequest
Source§const MIN_VERSION: i16 = 0
const MIN_VERSION: i16 = 0
Source§const MAX_VERSION: i16 = 5
const MAX_VERSION: i16 = 5
fn encode(&self, buf: &mut impl BufMut, version: i16) -> Result<(), EncodeError>
Source§fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
version. Read more