Struct rdkafka::admin::NewPartitions
source · [−]pub struct NewPartitions<'a> {
pub topic_name: &'a str,
pub new_partition_count: usize,
pub assignment: Option<PartitionAssignment<'a>>,
}
Expand description
Configuration for a CreatePartitions operation.
Fields
topic_name: &'a str
The name of the topic to which partitions should be added.
new_partition_count: usize
The total number of partitions after the operation completes.
assignment: Option<PartitionAssignment<'a>>
The replica assignments for the new partitions.
Implementations
Creates a new NewPartitions
.
Sets the partition replica assignment for the new partitions. Only assignments for newly created replicas should be included.