Skip to main content

TransformStep

Trait TransformStep 

Source
pub trait TransformStep: Send + Sync {
    // Required methods
    fn apply(&self, data: &mut Value) -> Result<bool, OversyncError>;
    fn step_name(&self) -> &str;
}
Expand description

A single transform operation applied to one record’s data.

Each step receives a mutable reference to the record’s JSON data field and returns Ok(true) to keep the record or Ok(false) to filter it out.

Required Methods§

Source

fn apply(&self, data: &mut Value) -> Result<bool, OversyncError>

Source

fn step_name(&self) -> &str

Implementors§