pub struct CreateTopicRequest {
pub name: String_,
pub num_partitions: Int32,
pub replication_factor: Int16,
pub assignments: Vec<CreateTopicAssignment>,
pub configs: Vec<CreateTopicConfig>,
pub tagged_fields: Option<TaggedFields>,
}Fields§
§name: String_The topic name
num_partitions: Int32The number of partitions to create in the topic, or -1 if we are either specifying a manual partition assignment or using the default partitions.
Note: default partition count requires broker version >= 2.4.0 (KIP-464)
replication_factor: Int16The 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.
Note: default replication factor requires broker version >= 2.4.0 (KIP-464)
assignments: Vec<CreateTopicAssignment>The manual partition assignment, or the empty array if we are using automatic assignment.
configs: Vec<CreateTopicConfig>The custom topic configurations to set.
tagged_fields: Option<TaggedFields>The tagged fields.
Added in version 5
Trait Implementations§
Source§impl Debug for CreateTopicRequest
impl Debug for CreateTopicRequest
Source§impl<W> WriteVersionedType<W> for CreateTopicRequestwhere
W: Write,
impl<W> WriteVersionedType<W> for CreateTopicRequestwhere
W: Write,
fn write_versioned( &self, writer: &mut W, version: ApiVersion, ) -> Result<(), WriteVersionedError>
Auto Trait Implementations§
impl Freeze for CreateTopicRequest
impl RefUnwindSafe for CreateTopicRequest
impl Send for CreateTopicRequest
impl Sync for CreateTopicRequest
impl Unpin for CreateTopicRequest
impl UnwindSafe for CreateTopicRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more