pub struct KafkaConfig {
pub enabled: bool,
pub port: u16,
pub host: String,
pub broker_id: i32,
pub max_connections: usize,
pub log_retention_ms: i64,
pub log_segment_bytes: i64,
pub fixtures_dir: Option<PathBuf>,
pub auto_create_topics: bool,
pub default_partitions: i32,
pub default_replication_factor: i16,
}
Expand description
Kafka server configuration
Fields§
§enabled: bool
Enable Kafka server
port: u16
Server port
host: String
Host address
broker_id: i32
Broker ID
max_connections: usize
Maximum connections
log_retention_ms: i64
Log retention time in milliseconds
log_segment_bytes: i64
Log segment size in bytes
fixtures_dir: Option<PathBuf>
Fixtures directory
auto_create_topics: bool
Auto-create topics
default_partitions: i32
Default number of partitions for new topics
default_replication_factor: i16
Default replication factor for new topics
Trait Implementations§
Source§impl Clone for KafkaConfig
impl Clone for KafkaConfig
Source§fn clone(&self) -> KafkaConfig
fn clone(&self) -> KafkaConfig
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 KafkaConfig
impl Debug for KafkaConfig
Source§impl Default for KafkaConfig
impl Default for KafkaConfig
Source§impl<'de> Deserialize<'de> for KafkaConfigwhere
KafkaConfig: Default,
impl<'de> Deserialize<'de> for KafkaConfigwhere
KafkaConfig: Default,
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 KafkaConfig
impl RefUnwindSafe for KafkaConfig
impl Send for KafkaConfig
impl Sync for KafkaConfig
impl Unpin for KafkaConfig
impl UnwindSafe for KafkaConfig
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