Struct kafka_protocol::messages::add_partitions_to_txn_response::AddPartitionsToTxnPartitionResultBuilder
source · pub struct AddPartitionsToTxnPartitionResultBuilder { /* private fields */ }
Expand description
Builder for AddPartitionsToTxnPartitionResult
.
Implementations§
source§impl AddPartitionsToTxnPartitionResultBuilder
impl AddPartitionsToTxnPartitionResultBuilder
sourcepub fn partition_error_code(&mut self, value: i16) -> &mut Self
pub fn partition_error_code(&mut self, value: i16) -> &mut Self
The response error code.
Supported API versions: 0-4
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<AddPartitionsToTxnPartitionResult, AddPartitionsToTxnPartitionResultBuilderError>
pub fn build( &self ) -> Result<AddPartitionsToTxnPartitionResult, AddPartitionsToTxnPartitionResultBuilderError>
Builds a new AddPartitionsToTxnPartitionResult
.
§Errors
If a required field has not been initialized.
Trait Implementations§
source§impl Clone for AddPartitionsToTxnPartitionResultBuilder
impl Clone for AddPartitionsToTxnPartitionResultBuilder
source§fn clone(&self) -> AddPartitionsToTxnPartitionResultBuilder
fn clone(&self) -> AddPartitionsToTxnPartitionResultBuilder
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 AddPartitionsToTxnPartitionResultBuilder
impl Send for AddPartitionsToTxnPartitionResultBuilder
impl Sync for AddPartitionsToTxnPartitionResultBuilder
impl Unpin for AddPartitionsToTxnPartitionResultBuilder
impl UnwindSafe for AddPartitionsToTxnPartitionResultBuilder
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