pub trait Job {
// Required method
fn run(&self) -> Result<JobExecution, BatchError>;
}
Expand description
Represents a job that can be executed.
Required Methods§
Sourcefn run(&self) -> Result<JobExecution, BatchError>
fn run(&self) -> Result<JobExecution, BatchError>
Runs the job and returns the result of the job execution.