pub enum ModeAction {
GenerateCode {
spec: String,
},
ModifyFile {
path: PathBuf,
diff: String,
},
RunCommand {
command: String,
},
RunTests {
paths: Vec<PathBuf>,
},
ValidateQuality {
paths: Vec<PathBuf>,
},
AskQuestion {
question: String,
},
SuggestMode {
mode: String,
reason: String,
},
DisplayThinking {
content: String,
},
}Expand description
An action that a mode can perform
Variants§
GenerateCode
Generate code from a specification
ModifyFile
Modify a file
RunCommand
Run a command
RunTests
Run tests
ValidateQuality
Validate quality
AskQuestion
Ask a question
SuggestMode
Suggest a mode
DisplayThinking
Display thinking content
Trait Implementations§
Source§impl Clone for ModeAction
impl Clone for ModeAction
Source§fn clone(&self) -> ModeAction
fn clone(&self) -> ModeAction
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 ModeAction
impl Debug for ModeAction
Source§impl<'de> Deserialize<'de> for ModeAction
impl<'de> Deserialize<'de> for ModeAction
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 ModeAction
impl RefUnwindSafe for ModeAction
impl Send for ModeAction
impl Sync for ModeAction
impl Unpin for ModeAction
impl UnwindSafe for ModeAction
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