pub struct CreatableTopic {
pub num_partitions: i32,
pub replication_factor: i16,
pub assignments: IndexMap<i32, CreatableReplicaAssignment>,
pub configs: IndexMap<StrBytes, CreateableTopicConfig>,
pub unknown_tagged_fields: BTreeMap<i32, Vec<u8>>,
}Expand description
Valid versions: 0-7
Fields
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.
Supported API versions: 0-7
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.
Supported API versions: 0-7
assignments: IndexMap<i32, CreatableReplicaAssignment>The manual partition assignment, or the empty array if we are using automatic assignment.
Supported API versions: 0-7
configs: IndexMap<StrBytes, CreateableTopicConfig>The custom topic configurations to set.
Supported API versions: 0-7
unknown_tagged_fields: BTreeMap<i32, Vec<u8>>Other tagged fields
Trait Implementations
sourceimpl Clone for CreatableTopic
impl Clone for CreatableTopic
sourcefn clone(&self) -> CreatableTopic
fn clone(&self) -> CreatableTopic
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CreatableTopic
impl Debug for CreatableTopic
sourceimpl Default for CreatableTopic
impl Default for CreatableTopic
sourceimpl Message for CreatableTopic
impl Message for CreatableTopic
sourceconst VERSIONS: VersionRange = VersionRange { min: 0, max: 7 }
const VERSIONS: VersionRange = VersionRange { min: 0, max: 7 }
The valid versions for this message.
sourceimpl PartialEq<CreatableTopic> for CreatableTopic
impl PartialEq<CreatableTopic> for CreatableTopic
sourcefn eq(&self, other: &CreatableTopic) -> bool
fn eq(&self, other: &CreatableTopic) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CreatableTopic) -> bool
fn ne(&self, other: &CreatableTopic) -> bool
This method tests for !=.
impl StructuralPartialEq for CreatableTopic
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more