pub struct DeleteRecordsPartition {
pub partition_index: i32,
pub offset: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition_index: i32The partition index.
offset: i64The deletion offset. -1 means that records should be truncated to the high watermark.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl DeleteRecordsPartition
impl DeleteRecordsPartition
pub fn with_partition_index(self, value: i32) -> Self
pub fn with_offset(self, value: i64) -> 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 DeleteRecordsPartition
impl Clone for DeleteRecordsPartition
Source§fn clone(&self) -> DeleteRecordsPartition
fn clone(&self) -> DeleteRecordsPartition
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 DeleteRecordsPartition
impl Debug for DeleteRecordsPartition
Source§impl Default for DeleteRecordsPartition
impl Default for DeleteRecordsPartition
Source§impl PartialEq for DeleteRecordsPartition
impl PartialEq for DeleteRecordsPartition
Source§fn eq(&self, other: &DeleteRecordsPartition) -> bool
fn eq(&self, other: &DeleteRecordsPartition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeleteRecordsPartition
Auto Trait Implementations§
impl Freeze for DeleteRecordsPartition
impl RefUnwindSafe for DeleteRecordsPartition
impl Send for DeleteRecordsPartition
impl Sync for DeleteRecordsPartition
impl Unpin for DeleteRecordsPartition
impl UnsafeUnpin for DeleteRecordsPartition
impl UnwindSafe for DeleteRecordsPartition
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