pub enum StepAction {
CreateFile {
path: String,
content: String,
},
ModifyFile {
path: String,
diff: String,
},
DeleteFile {
path: String,
},
RunCommand {
command: String,
args: Vec<String>,
},
RunTests {
pattern: Option<String>,
},
}Expand description
Action to perform in a step
Variants§
CreateFile
Create a new file with content
ModifyFile
Modify an existing file
DeleteFile
Delete a file
RunCommand
Run a shell command
RunTests
Run tests
Trait Implementations§
Source§impl Clone for StepAction
impl Clone for StepAction
Source§fn clone(&self) -> StepAction
fn clone(&self) -> StepAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepAction
impl Debug for StepAction
Source§impl<'de> Deserialize<'de> for StepAction
impl<'de> Deserialize<'de> for StepAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StepAction
impl RefUnwindSafe for StepAction
impl Send for StepAction
impl Sync for StepAction
impl Unpin for StepAction
impl UnwindSafe for StepAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more