pub struct TopicDefaults {
pub partitions: u32,
pub replication_factor: u16,
pub retention: Duration,
pub segment_size: u64,
}Expand description
Default topic configuration
Fields§
§partitions: u32Default number of partitions
replication_factor: u16Default replication factor
retention: DurationDefault retention period
segment_size: u64Default segment size
Implementations§
Source§impl TopicDefaults
impl TopicDefaults
Sourcepub fn standalone() -> Self
pub fn standalone() -> Self
Standalone defaults (single partition, no replication)
Trait Implementations§
Source§impl Clone for TopicDefaults
impl Clone for TopicDefaults
Source§fn clone(&self) -> TopicDefaults
fn clone(&self) -> TopicDefaults
Returns a duplicate 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 TopicDefaults
impl Debug for TopicDefaults
Source§impl Default for TopicDefaults
impl Default for TopicDefaults
Source§impl<'de> Deserialize<'de> for TopicDefaults
impl<'de> Deserialize<'de> for TopicDefaults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TopicDefaults
impl RefUnwindSafe for TopicDefaults
impl Send for TopicDefaults
impl Sync for TopicDefaults
impl Unpin for TopicDefaults
impl UnsafeUnpin for TopicDefaults
impl UnwindSafe for TopicDefaults
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