Struct kafka_protocol::messages::describe_log_dirs_response::DescribeLogDirsPartitionBuilder
source · pub struct DescribeLogDirsPartitionBuilder { /* private fields */ }
Expand description
Builder for DescribeLogDirsPartition
.
Implementations§
source§impl DescribeLogDirsPartitionBuilder
impl DescribeLogDirsPartitionBuilder
sourcepub fn partition_index(&mut self, value: i32) -> &mut Self
pub fn partition_index(&mut self, value: i32) -> &mut Self
The partition index.
Supported API versions: 0-3
sourcepub fn partition_size(&mut self, value: i64) -> &mut Self
pub fn partition_size(&mut self, value: i64) -> &mut Self
The size of the log segments in this partition in bytes.
Supported API versions: 0-3
sourcepub fn offset_lag(&mut self, value: i64) -> &mut Self
pub fn offset_lag(&mut self, value: i64) -> &mut Self
The lag of the log’s LEO w.r.t. partition’s HW (if it is the current log for the partition) or current replica’s LEO (if it is the future log for the partition)
Supported API versions: 0-3
sourcepub fn is_future_key(&mut self, value: bool) -> &mut Self
pub fn is_future_key(&mut self, value: bool) -> &mut Self
True if this log is created by AlterReplicaLogDirsRequest and will replace the current log of the replica in the future.
Supported API versions: 0-3
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Vec<u8>>
) -> &mut Self
pub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Vec<u8>>
) -> &mut Self
Other tagged fields
sourcepub fn build(
&self
) -> Result<DescribeLogDirsPartition, DescribeLogDirsPartitionBuilderError>
pub fn build(
&self
) -> Result<DescribeLogDirsPartition, DescribeLogDirsPartitionBuilderError>
Trait Implementations§
source§impl Clone for DescribeLogDirsPartitionBuilder
impl Clone for DescribeLogDirsPartitionBuilder
source§fn clone(&self) -> DescribeLogDirsPartitionBuilder
fn clone(&self) -> DescribeLogDirsPartitionBuilder
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 more