#[non_exhaustive]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, Bytes>,
}Expand description
Valid versions: 0-7
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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, Bytes>Other tagged fields
Implementations§
source§impl CreatableTopic
impl CreatableTopic
sourcepub fn with_num_partitions(self, value: i32) -> Self
pub fn with_num_partitions(self, value: i32) -> Self
Sets num_partitions to the passed value.
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.
Supported API versions: 0-7
sourcepub fn with_replication_factor(self, value: i16) -> Self
pub fn with_replication_factor(self, value: i16) -> Self
Sets replication_factor to the passed value.
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.
Supported API versions: 0-7
sourcepub fn with_assignments(
self,
value: IndexMap<i32, CreatableReplicaAssignment>,
) -> Self
pub fn with_assignments( self, value: IndexMap<i32, CreatableReplicaAssignment>, ) -> Self
Sets assignments to the passed value.
The manual partition assignment, or the empty array if we are using automatic assignment.
Supported API versions: 0-7
sourcepub fn with_configs(
self,
value: IndexMap<StrBytes, CreateableTopicConfig>,
) -> Self
pub fn with_configs( self, value: IndexMap<StrBytes, CreateableTopicConfig>, ) -> Self
Sets configs to the passed value.
The custom topic configurations to set.
Supported API versions: 0-7
sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
source§impl Clone for CreatableTopic
impl Clone for CreatableTopic
source§fn clone(&self) -> CreatableTopic
fn clone(&self) -> CreatableTopic
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreatableTopic
impl Debug for CreatableTopic
source§impl Default for CreatableTopic
impl Default for CreatableTopic
source§impl Message for CreatableTopic
impl Message for CreatableTopic
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = _
const DEPRECATED_VERSIONS: Option<VersionRange> = _
source§impl PartialEq for CreatableTopic
impl PartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)