pub struct EndTxnRequestBuilder { /* private fields */ }
Expand description
Builder for EndTxnRequest
.
Implementations§
source§impl EndTxnRequestBuilder
impl EndTxnRequestBuilder
sourcepub fn transactional_id(&mut self, value: TransactionalId) -> &mut Self
pub fn transactional_id(&mut self, value: TransactionalId) -> &mut Self
The ID of the transaction to end.
Supported API versions: 0-3
sourcepub fn producer_id(&mut self, value: ProducerId) -> &mut Self
pub fn producer_id(&mut self, value: ProducerId) -> &mut Self
The producer ID.
Supported API versions: 0-3
sourcepub fn producer_epoch(&mut self, value: i16) -> &mut Self
pub fn producer_epoch(&mut self, value: i16) -> &mut Self
The current epoch associated with the producer.
Supported API versions: 0-3
sourcepub fn committed(&mut self, value: bool) -> &mut Self
pub fn committed(&mut self, value: bool) -> &mut Self
True if the transaction was committed, false if it was aborted.
Supported API versions: 0-3
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Bytes>
) -> &mut Self
pub fn unknown_tagged_fields( &mut self, value: BTreeMap<i32, Bytes> ) -> &mut Self
Other tagged fields
sourcepub fn build(&self) -> Result<EndTxnRequest, EndTxnRequestBuilderError>
pub fn build(&self) -> Result<EndTxnRequest, EndTxnRequestBuilderError>
Trait Implementations§
source§impl Clone for EndTxnRequestBuilder
impl Clone for EndTxnRequestBuilder
source§fn clone(&self) -> EndTxnRequestBuilder
fn clone(&self) -> EndTxnRequestBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for EndTxnRequestBuilder
impl Send for EndTxnRequestBuilder
impl Sync for EndTxnRequestBuilder
impl Unpin for EndTxnRequestBuilder
impl UnwindSafe for EndTxnRequestBuilder
Blanket Implementations§
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