#[non_exhaustive]pub struct AddOffsetsToTxnRequest {
pub transactional_id: TransactionalId,
pub producer_id: ProducerId,
pub producer_epoch: i16,
pub group_id: GroupId,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-4
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: TransactionalId
The transactional id corresponding to the transaction.
Supported API versions: 0-4
producer_id: ProducerId
Current producer id in use by the transactional id.
Supported API versions: 0-4
producer_epoch: i16
Current epoch associated with the producer id.
Supported API versions: 0-4
group_id: GroupId
The unique group identifier.
Supported API versions: 0-4
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl AddOffsetsToTxnRequest
impl AddOffsetsToTxnRequest
Sourcepub fn with_transactional_id(self, value: TransactionalId) -> Self
pub fn with_transactional_id(self, value: TransactionalId) -> Self
Sets transactional_id
to the passed value.
The transactional id corresponding to the transaction.
Supported API versions: 0-4
Sourcepub fn with_producer_id(self, value: ProducerId) -> Self
pub fn with_producer_id(self, value: ProducerId) -> Self
Sets producer_id
to the passed value.
Current producer id in use by the transactional id.
Supported API versions: 0-4
Sourcepub fn with_producer_epoch(self, value: i16) -> Self
pub fn with_producer_epoch(self, value: i16) -> Self
Sets producer_epoch
to the passed value.
Current epoch associated with the producer id.
Supported API versions: 0-4
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-4
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 AddOffsetsToTxnRequest
impl Clone for AddOffsetsToTxnRequest
Source§fn clone(&self) -> AddOffsetsToTxnRequest
fn clone(&self) -> AddOffsetsToTxnRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AddOffsetsToTxnRequest
impl Debug for AddOffsetsToTxnRequest
Source§impl Decodable for AddOffsetsToTxnRequest
Available on crate feature broker
only.
impl Decodable for AddOffsetsToTxnRequest
broker
only.Source§impl Default for AddOffsetsToTxnRequest
impl Default for AddOffsetsToTxnRequest
Source§impl Encodable for AddOffsetsToTxnRequest
Available on crate feature client
only.
impl Encodable for AddOffsetsToTxnRequest
client
only.Source§impl From<AddOffsetsToTxnRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<AddOffsetsToTxnRequest> for RequestKind
messages_enums
only.Source§fn from(value: AddOffsetsToTxnRequest) -> RequestKind
fn from(value: AddOffsetsToTxnRequest) -> RequestKind
Source§impl HeaderVersion for AddOffsetsToTxnRequest
impl HeaderVersion for AddOffsetsToTxnRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for AddOffsetsToTxnRequest
impl Message for AddOffsetsToTxnRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for AddOffsetsToTxnRequest
impl PartialEq for AddOffsetsToTxnRequest
Source§impl Request for AddOffsetsToTxnRequest
Available on crate features client
and broker
only.
impl Request for AddOffsetsToTxnRequest
client
and broker
only.