pub struct BatchCoordinate {
pub topic: String,
pub partition: Vec<u8>,
pub base_offset: u64,
pub offset: u64,
pub size: u32,
pub request: ProduceRequest,
}
Expand description
A BatchCoordinate represents the metadata of a record inside of a file.
Fields§
§topic: String
The topic for this record.
partition: Vec<u8>
The partition for this record.
base_offset: u64
The base_offset inside of the file at which this record exists.
offset: u64
The offset at which this record exists.
size: u32
The size in bytes of this record.
request: ProduceRequest
The original request for retrieving the BatchCoordinate.
Trait Implementations§
Source§impl Clone for BatchCoordinate
impl Clone for BatchCoordinate
Source§fn clone(&self) -> BatchCoordinate
fn clone(&self) -> BatchCoordinate
Returns a copy 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 BatchCoordinate
impl Debug for BatchCoordinate
Source§impl From<&BatchCoordinate> for CommitBatchRequest
impl From<&BatchCoordinate> for CommitBatchRequest
Source§fn from(value: &BatchCoordinate) -> Self
fn from(value: &BatchCoordinate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BatchCoordinate
impl RefUnwindSafe for BatchCoordinate
impl Send for BatchCoordinate
impl Sync for BatchCoordinate
impl Unpin for BatchCoordinate
impl UnwindSafe for BatchCoordinate
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more