pub trait SourceBuilder {
type Source;
// Required method
fn build(&self) -> Self::Source;
// Provided method
fn parse_config_value(&mut self, _cfg: Value) { ... }
}
Expand description
SourceBuilder
trait for defining how to configure
structs that implements the Source
trait.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn parse_config_value(&mut self, _cfg: Value)
fn parse_config_value(&mut self, _cfg: Value)
Given a Topology.toml for a [source.config] config::Value
override the options
for the source.