#[non_exhaustive]pub struct PartitionData {
pub partition: i32,
pub state_epoch: i32,
pub leader_epoch: i32,
pub start_offset: i64,
pub state_batches: Vec<StateBatch>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.partition: i32
The partition index.
Supported API versions: 0
state_epoch: i32
The state epoch of the share-partition.
Supported API versions: 0
leader_epoch: i32
The leader epoch of the share-partition.
Supported API versions: 0
start_offset: i64
The share-partition start offset, or -1 if the start offset is not being written.
Supported API versions: 0
state_batches: Vec<StateBatch>
The state batches for the share-partition.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl PartitionData
impl PartitionData
Sourcepub fn with_partition(self, value: i32) -> Self
pub fn with_partition(self, value: i32) -> Self
Sets partition
to the passed value.
The partition index.
Supported API versions: 0
Sourcepub fn with_state_epoch(self, value: i32) -> Self
pub fn with_state_epoch(self, value: i32) -> Self
Sets state_epoch
to the passed value.
The state epoch of the share-partition.
Supported API versions: 0
Sourcepub fn with_leader_epoch(self, value: i32) -> Self
pub fn with_leader_epoch(self, value: i32) -> Self
Sets leader_epoch
to the passed value.
The leader epoch of the share-partition.
Supported API versions: 0
Sourcepub fn with_start_offset(self, value: i64) -> Self
pub fn with_start_offset(self, value: i64) -> Self
Sets start_offset
to the passed value.
The share-partition start offset, or -1 if the start offset is not being written.
Supported API versions: 0
Sourcepub fn with_state_batches(self, value: Vec<StateBatch>) -> Self
pub fn with_state_batches(self, value: Vec<StateBatch>) -> Self
Sets state_batches
to the passed value.
The state batches for the share-partition.
Supported API versions: 0
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for PartitionData
impl Clone for PartitionData
Source§fn clone(&self) -> PartitionData
fn clone(&self) -> PartitionData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PartitionData
impl Debug for PartitionData
Source§impl Decodable for PartitionData
Available on crate feature broker
only.
impl Decodable for PartitionData
broker
only.Source§impl Default for PartitionData
impl Default for PartitionData
Source§impl Encodable for PartitionData
Available on crate feature client
only.
impl Encodable for PartitionData
client
only.