pub struct FanoutConfig {
pub brokers: Vec<String>,
pub topic: String,
pub tls: Option<CaptureTlsConfig>,
pub body_encoding: FanoutBodyEncoding,
pub async_default: bool,
pub expand_delete_by_query: bool,
}Expand description
Async fan-out write queue settings: where resolved write ops are enqueued for
a downstream applier (docs/04 §9, ADR-010). Plain data (no broker types), so
the config crate stays free of any Kafka client.
Fields§
§brokers: Vec<String>The Kafka bootstrap brokers (host:port), at least one.
topic: StringThe topic each op envelope is produced to.
tls: Option<CaptureTlsConfig>TLS to the brokers, or None for a plaintext broker connection.
body_encoding: FanoutBodyEncodingHow the document body is encoded in the envelope (default CBOR).
async_default: boolWhether async is the deployment-default write mode (default false):
false = sync unless a request sends X-Write-Mode: async; true =
async unless a request sends X-Write-Mode: sync.
expand_delete_by_query: boolWhether _delete_by_query may be expanded into per-match deletes in async
mode (default false). It reads the match set and enqueues a delete each,
so it is opt-in (docs/04 §9).
Trait Implementations§
Source§impl Clone for FanoutConfig
impl Clone for FanoutConfig
Source§fn clone(&self) -> FanoutConfig
fn clone(&self) -> FanoutConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FanoutConfig
impl Debug for FanoutConfig
impl Eq for FanoutConfig
Source§impl PartialEq for FanoutConfig
impl PartialEq for FanoutConfig
Source§fn eq(&self, other: &FanoutConfig) -> bool
fn eq(&self, other: &FanoutConfig) -> bool
self and other values to be equal, and is used by ==.