pub struct CreatePartitionsRequestData {
pub topics: Vec<CreatePartitionsTopic>,
pub timeout_ms: i32,
pub validate_only: bool,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§topics: Vec<CreatePartitionsTopic>Each topic that we want to create new partitions inside.
timeout_ms: i32The time in ms to wait for the partitions to be created.
validate_only: boolIf true, then validate the request, but don’t actually increase the number of partitions.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl CreatePartitionsRequestData
impl CreatePartitionsRequestData
pub fn with_topics(self, value: Vec<CreatePartitionsTopic>) -> Self
pub fn with_timeout_ms(self, value: i32) -> Self
pub fn with_validate_only(self, value: bool) -> 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 CreatePartitionsRequestData
impl Clone for CreatePartitionsRequestData
Source§fn clone(&self) -> CreatePartitionsRequestData
fn clone(&self) -> CreatePartitionsRequestData
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 CreatePartitionsRequestData
impl Debug for CreatePartitionsRequestData
Source§impl PartialEq for CreatePartitionsRequestData
impl PartialEq for CreatePartitionsRequestData
Source§fn eq(&self, other: &CreatePartitionsRequestData) -> bool
fn eq(&self, other: &CreatePartitionsRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreatePartitionsRequestData
Auto Trait Implementations§
impl Freeze for CreatePartitionsRequestData
impl RefUnwindSafe for CreatePartitionsRequestData
impl Send for CreatePartitionsRequestData
impl Sync for CreatePartitionsRequestData
impl Unpin for CreatePartitionsRequestData
impl UnsafeUnpin for CreatePartitionsRequestData
impl UnwindSafe for CreatePartitionsRequestData
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