pub struct PartitionDataBuilder { /* private fields */ }
Expand description

Builder for PartitionData.

Implementations§

The partition index.

Supported API versions: 0-13

The error code, or 0 if there was no fetch error.

Supported API versions: 0-13

The current high water mark.

Supported API versions: 0-13

The last stable offset (or LSO) of the partition. This is the last offset such that the state of all transactional records prior to this offset have been decided (ABORTED or COMMITTED)

Supported API versions: 4-13

The current log start offset.

Supported API versions: 5-13

In case divergence is detected based on the LastFetchedEpoch and FetchOffset in the request, this field indicates the largest epoch and its end offset such that subsequent records are known to diverge

Supported API versions: 12-13

Supported API versions: 12-13

In the case of fetching an offset less than the LogStartOffset, this is the end offset and epoch that should be used in the FetchSnapshot request.

Supported API versions: 12-13

The aborted transactions.

Supported API versions: 4-13

The preferred read replica for the consumer to use on its next fetch request

Supported API versions: 11-13

The record data.

Supported API versions: 0-13

Other tagged fields

Builds a new PartitionData.

Errors

If a required field has not been initialized.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.