Skip to main content

TransformPlugin

Trait TransformPlugin 

Source
pub trait TransformPlugin: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn transform(
        &self,
        records: Vec<GeneratedRecord>,
    ) -> Result<Vec<GeneratedRecord>, SynthError>;
}
Expand description

Trait for data transform plugins.

Transform plugins modify or enrich records in-place.

Required Methods§

Source

fn name(&self) -> &str

Unique name identifying this transform.

Source

fn transform( &self, records: Vec<GeneratedRecord>, ) -> Result<Vec<GeneratedRecord>, SynthError>

Transform a batch of records.

Implementors§