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§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NewTopic<'a>
impl<'a> RefUnwindSafe for NewTopic<'a>
impl<'a> Send for NewTopic<'a>
impl<'a> Sync for NewTopic<'a>
impl<'a> Unpin for NewTopic<'a>
impl<'a> UnwindSafe for NewTopic<'a>
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