pub struct RecordsToDelete { /* private fields */ }Expand description
Describe records to delete in a call to Admin::delete_records.
Corresponds to org.apache.kafka.clients.admin.RecordsToDelete.
Implementations§
Source§impl RecordsToDelete
impl RecordsToDelete
Sourcepub fn before_offset_with_offset(offset: i64) -> Self
pub fn before_offset_with_offset(offset: i64) -> Self
Delete all the records before the given offset.
Use -1 to truncate to the high watermark.
Java’s static beforeOffset(long) shares its name with the getter
before_offset, so it takes the _with_offset
suffix of its parameter (CLAUDE.md §2).
Sourcepub fn before_offset(&self) -> i64
pub fn before_offset(&self) -> i64
The offset before which all records will be deleted.
Use -1 to truncate to the high watermark.
Trait Implementations§
Source§impl Clone for RecordsToDelete
impl Clone for RecordsToDelete
Source§fn clone(&self) -> RecordsToDelete
fn clone(&self) -> RecordsToDelete
Returns a duplicate of the value. Read more
1.0.0 · 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 RecordsToDelete
impl Debug for RecordsToDelete
Source§impl Display for RecordsToDelete
impl Display for RecordsToDelete
Source§impl Hash for RecordsToDelete
impl Hash for RecordsToDelete
Source§impl PartialEq for RecordsToDelete
impl PartialEq for RecordsToDelete
impl Copy for RecordsToDelete
impl Eq for RecordsToDelete
impl StructuralPartialEq for RecordsToDelete
Auto Trait Implementations§
impl Freeze for RecordsToDelete
impl RefUnwindSafe for RecordsToDelete
impl Send for RecordsToDelete
impl Sync for RecordsToDelete
impl Unpin for RecordsToDelete
impl UnsafeUnpin for RecordsToDelete
impl UnwindSafe for RecordsToDelete
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more