pub struct AlterPartitionRequestData {
pub broker_id: i32,
pub broker_epoch: i64,
pub topics: Vec<TopicData>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§broker_id: i32The ID of the requesting broker.
broker_epoch: i64The epoch of the requesting broker.
topics: Vec<TopicData>The topics to alter ISRs for.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AlterPartitionRequestData
impl AlterPartitionRequestData
pub fn with_broker_id(self, value: i32) -> Self
pub fn with_broker_epoch(self, value: i64) -> Self
pub fn with_topics(self, value: Vec<TopicData>) -> 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 AlterPartitionRequestData
impl Clone for AlterPartitionRequestData
Source§fn clone(&self) -> AlterPartitionRequestData
fn clone(&self) -> AlterPartitionRequestData
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 AlterPartitionRequestData
impl Debug for AlterPartitionRequestData
Source§impl Default for AlterPartitionRequestData
impl Default for AlterPartitionRequestData
Source§impl PartialEq for AlterPartitionRequestData
impl PartialEq for AlterPartitionRequestData
Source§fn eq(&self, other: &AlterPartitionRequestData) -> bool
fn eq(&self, other: &AlterPartitionRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlterPartitionRequestData
Auto Trait Implementations§
impl Freeze for AlterPartitionRequestData
impl RefUnwindSafe for AlterPartitionRequestData
impl Send for AlterPartitionRequestData
impl Sync for AlterPartitionRequestData
impl Unpin for AlterPartitionRequestData
impl UnsafeUnpin for AlterPartitionRequestData
impl UnwindSafe for AlterPartitionRequestData
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