Trait SourceBuilder

Source
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§

Source

fn build(&self) -> Self::Source

Provided Methods§

Source

fn parse_config_value(&mut self, _cfg: Value)

Given a Topology.toml for a [source.config] config::Value override the options for the source.

Implementors§