pub trait Step {
// Required methods
fn execute(&self) -> Result<StepExecution, StepExecution>;
fn get_status(&self) -> StepStatus;
fn get_name(&self) -> &String;
fn get_id(&self) -> Uuid;
fn get_read_count(&self) -> usize;
fn get_write_count(&self) -> usize;
fn get_read_error_count(&self) -> usize;
fn get_write_error_count(&self) -> usize;
}
Required Methods§
Sourcefn execute(&self) -> Result<StepExecution, StepExecution>
fn execute(&self) -> Result<StepExecution, StepExecution>
Executes the step.
Returns a StepResult
containing the execution details if the step is successful,
or an error if the step fails.
Sourcefn get_status(&self) -> StepStatus
fn get_status(&self) -> StepStatus
Gets the status of the step.
Returns a StepStatus
indicating the current status of the step.
Sourcefn get_name(&self) -> &String
fn get_name(&self) -> &String
Gets the name of the step.
Returns a reference to the name of the step.
Sourcefn get_id(&self) -> Uuid
fn get_id(&self) -> Uuid
Gets the ID of the step.
Returns the UUID representing the ID of the step.
Sourcefn get_read_count(&self) -> usize
fn get_read_count(&self) -> usize
Gets the number of items read by the step.
Returns the count of items read by the step.
Sourcefn get_write_count(&self) -> usize
fn get_write_count(&self) -> usize
Gets the number of items written by the step.
Returns the count of items written by the step.
Sourcefn get_read_error_count(&self) -> usize
fn get_read_error_count(&self) -> usize
Gets the number of read errors encountered by the step.
Returns the count of read errors encountered by the step.
Sourcefn get_write_error_count(&self) -> usize
fn get_write_error_count(&self) -> usize
Gets the number of write errors encountered by the step.
Returns the count of write errors encountered by the step.