pub struct CreatableTopic {
pub num_partitions: i32,
pub replication_factor: i16,
pub assignments: IndexMap<i32, CreatableReplicaAssignment>,
pub configs: IndexMap<StrBytes, CreateableTopicConfig>,
pub unknown_tagged_fields: BTreeMap<i32, Vec<u8>>,
}
Expand description
Valid versions: 0-7
Fields§
§num_partitions: i32
The number of partitions to create in the topic, or -1 if we are either specifying a manual partition assignment or using the default partitions.
Supported API versions: 0-7
replication_factor: i16
The number of replicas to create for each partition in the topic, or -1 if we are either specifying a manual partition assignment or using the default replication factor.
Supported API versions: 0-7
assignments: IndexMap<i32, CreatableReplicaAssignment>
The manual partition assignment, or the empty array if we are using automatic assignment.
Supported API versions: 0-7
configs: IndexMap<StrBytes, CreateableTopicConfig>
The custom topic configurations to set.
Supported API versions: 0-7
unknown_tagged_fields: BTreeMap<i32, Vec<u8>>
Other tagged fields
Trait Implementations§
source§impl Clone for CreatableTopic
impl Clone for CreatableTopic
source§fn clone(&self) -> CreatableTopic
fn clone(&self) -> CreatableTopic
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 moresource§impl Debug for CreatableTopic
impl Debug for CreatableTopic
source§impl Default for CreatableTopic
impl Default for CreatableTopic
source§impl Message for CreatableTopic
impl Message for CreatableTopic
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
The valid versions for this message.