Struct rdkafka::admin::NewTopic

source ·
pub struct NewTopic<'a> {
    pub name: &'a str,
    pub num_partitions: i32,
    pub replication: TopicReplication<'a>,
    pub config: Vec<(&'a str, &'a str)>,
}
Expand description

Configuration for a CreateTopic operation.

Fields§

§name: &'a str

The name of the new topic.

§num_partitions: i32

The initial number of partitions.

§replication: TopicReplication<'a>

The initial replication configuration.

§config: Vec<(&'a str, &'a str)>

The initial configuration parameters for the topic.

Implementations§

Creates a new NewTopic.

Sets a new parameter in the initial topic configuration.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.