pub trait Step {
type Input;
type Output;
// Required method
fn execute(&self, input: Self::Input) -> Result<Self::Output, PipelineError>;
// Provided method
fn with<P>(self, policy: P) -> P::Decorated
where P: Policy<Self>,
Self: Sized { ... }
}Expand description
The core trait for all transformation logic.
Any struct implementing Step can be plugged into a Pipeline.