[][src]Struct kf_protocol::message::topic::CreatableTopic

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

impl Debug for CreatableTopic[src]

impl Decoder for CreatableTopic[src]

impl Default for CreatableTopic[src]

impl<'de> Deserialize<'de> for CreatableTopic[src]

impl Encoder for CreatableTopic[src]

impl Serialize for CreatableTopic[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.