#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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.
Supported API versions: 0-7
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.
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
Trait Implementations§
source§impl Builder for CreatableTopic
impl Builder for CreatableTopic
§type Builder = CreatableTopicBuilder
type Builder = CreatableTopicBuilder
The
derive_builder::Builder
type for this protocol item.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 Default for CreatableTopic
impl Default for CreatableTopic
source§impl Message for CreatableTopic
impl Message for CreatableTopic
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
The valid versions for this message.
source§const DEPRECATED_VERSIONS: Option<VersionRange> = _
const DEPRECATED_VERSIONS: Option<VersionRange> = _
The deprecated versions for this message.
source§impl PartialEq for CreatableTopic
impl PartialEq for CreatableTopic
source§fn 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 ==
.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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)