risingwave_connector::sink::formatter

Trait FormatterBuild

source
trait FormatterBuild: Sized {
    // Required method
    async fn build(b: FormatterParams<'_>) -> Result<Self>;
}
Expand description

Each formatter shall be able to be built from parameters.

This is not part of SinkFormatter trait, because that is about how a formatter completes its own job as a self-contained unit, with a custom new asking for only necessary info; while this one is about how different formatters can be selected from a common SQL interface.

Required Methods§

source

async fn build(b: FormatterParams<'_>) -> Result<Self>

Object Safety§

This trait is not object safe.

Implementors§