pub struct CreatableTopic {
pub name: String,
pub num_partitions: i32,
pub replication_factor: i16,
pub assignments: Vec<CreatableReplicaAssignment>,
pub configs: Vec<CreateableTopicConfig>,
}
Fields§
§name: String
The topic name.
num_partitions: i32
The number of partitions to create in the topic, or -1 if we are specifying a manual partition assignment.
replication_factor: i16
The number of replicas to create for each partition in the topic, or -1 if we are specifying a manual partition assignment.
assignments: Vec<CreatableReplicaAssignment>
The manual partition assignment, or the empty array if we are using automatic assignment.
configs: Vec<CreateableTopicConfig>
The custom topic configurations to set.
Trait Implementations§
Source§impl Debug for CreatableTopic
impl Debug for CreatableTopic
Source§impl Decoder for CreatableTopic
impl Decoder for CreatableTopic
Source§impl Default for CreatableTopic
impl Default for CreatableTopic
Source§impl<'de> Deserialize<'de> for CreatableTopic
impl<'de> Deserialize<'de> for CreatableTopic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encoder for CreatableTopic
impl Encoder for CreatableTopic
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