Struct kafka_api::create_topic_request::CreatableTopic
source · pub struct CreatableTopic {
pub name: String,
pub num_partitions: i32,
pub replication_factor: i16,
pub assignments: Vec<CreatableReplicaAssignment>,
pub configs: Vec<CreatableTopicConfig>,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}
Fields§
§name: String
The topic name.
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.
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.
assignments: Vec<CreatableReplicaAssignment>
The manual partition assignment, or the empty array if we are using automatic assignment.
configs: Vec<CreatableTopicConfig>
The custom topic configurations to set.
unknown_tagged_fields: Vec<RawTaggedField>
Unknown 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 Decodable for CreatableTopic
impl Decodable for CreatableTopic
source§impl Default for CreatableTopic
impl Default for CreatableTopic
source§fn default() -> CreatableTopic
fn default() -> CreatableTopic
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CreatableTopic
impl Send for CreatableTopic
impl Sync for CreatableTopic
impl Unpin for CreatableTopic
impl UnwindSafe for CreatableTopic
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