pub struct NewTopic<'a> {
pub name: &'a str,
pub num_partitions: i32,
pub replication: TopicReplication<'a>,
pub config: Vec<(&'a str, &'a str)>,
}
Expand description
Configuration for a CreateTopic operation.
Fields
name: &'a str
The name of the new topic.
num_partitions: i32
The initial number of partitions.
replication: TopicReplication<'a>
The initial replication configuration.
config: Vec<(&'a str, &'a str)>
The initial configuration parameters for the topic.