pub struct CreatableTopic {
pub name: String,
pub num_partitions: i32,
pub replication_factor: i16,
pub assignments: Vec<CreatableReplicaAssignment>,
pub configs: Vec<CreatableTopicConfig>,
}Expand description
CreatableTopic, version 3.
Fields§
§name: StringThe topic name.
num_partitions: i32The 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: i16The 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.
Implementations§
Source§impl CreatableTopic
impl CreatableTopic
pub fn new<S1: AsRef<str>>( name: S1, num_partitions: i32, replication_factor: i16, assignments: Vec<CreatableReplicaAssignment>, configs: Vec<CreatableTopicConfig>, ) -> Self
Trait Implementations§
Source§impl Clone for CreatableTopic
impl Clone for CreatableTopic
Source§fn clone(&self) -> CreatableTopic
fn clone(&self) -> CreatableTopic
Returns a duplicate 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<'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 PartialEq for CreatableTopic
impl PartialEq for CreatableTopic
Source§impl Readable for CreatableTopic
impl Readable for CreatableTopic
Source§impl Serialize for CreatableTopic
impl Serialize for CreatableTopic
Source§impl Writable for CreatableTopic
impl Writable for CreatableTopic
impl StructuralPartialEq 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