pub struct AddPartitionsToTxnTopic {
pub name: KafkaString,
pub partitions: Vec<i32>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe name of the topic.
partitions: Vec<i32>The partition indexes to add to the transaction.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AddPartitionsToTxnTopic
impl AddPartitionsToTxnTopic
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_partitions(self, value: Vec<i32>) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for AddPartitionsToTxnTopic
impl Clone for AddPartitionsToTxnTopic
Source§fn clone(&self) -> AddPartitionsToTxnTopic
fn clone(&self) -> AddPartitionsToTxnTopic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddPartitionsToTxnTopic
impl Debug for AddPartitionsToTxnTopic
Source§impl Default for AddPartitionsToTxnTopic
impl Default for AddPartitionsToTxnTopic
Source§impl PartialEq for AddPartitionsToTxnTopic
impl PartialEq for AddPartitionsToTxnTopic
Source§fn eq(&self, other: &AddPartitionsToTxnTopic) -> bool
fn eq(&self, other: &AddPartitionsToTxnTopic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddPartitionsToTxnTopic
Auto Trait Implementations§
impl !Freeze for AddPartitionsToTxnTopic
impl RefUnwindSafe for AddPartitionsToTxnTopic
impl Send for AddPartitionsToTxnTopic
impl Sync for AddPartitionsToTxnTopic
impl Unpin for AddPartitionsToTxnTopic
impl UnsafeUnpin for AddPartitionsToTxnTopic
impl UnwindSafe for AddPartitionsToTxnTopic
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