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