pub trait TargetFactory: Send + Sync {
// Required methods
fn sink_type(&self) -> &str;
fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
config: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Sink>, OversyncError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Factory for creating Sink target connectors from a JSON config object.