pub struct NewTopic {
pub name: String,
pub partitions: i32,
pub replication_factor: i16,
pub config: BTreeMap<String, String>,
}Expand description
A topic to create.
Fields§
§name: String§partitions: i32§replication_factor: i16§config: BTreeMap<String, String>Topic configuration, as the broker names it — retention.ms,
cleanup.policy, and so on.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewTopic
impl RefUnwindSafe for NewTopic
impl Send for NewTopic
impl Sync for NewTopic
impl Unpin for NewTopic
impl UnsafeUnpin for NewTopic
impl UnwindSafe for NewTopic
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