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 Freeze for CreatableTopic
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