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§
async fn build(b: FormatterParams<'_>) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.