ProjectOperation

Trait ProjectOperation 

Source
pub trait ProjectOperation: Send + Sync {
    // Required methods
    fn execute(&self, project: &Project) -> Result<()>;
    fn rollback(&self, project: &Project) -> Result<()>;
    fn description(&self) -> String;
}
Expand description

Trait for operations that can be executed on projects

Required Methods§

Source

fn execute(&self, project: &Project) -> Result<()>

Execute the operation on a project

Source

fn rollback(&self, project: &Project) -> Result<()>

Rollback the operation on a project

Source

fn description(&self) -> String

Get a description of the operation

Implementors§