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.

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

Performs the conversion.

Performs the conversion.

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.