pub enum FixType {
TextReplacement,
AstModification,
AddImport,
AddDependency,
ConfigurationChange,
ExecuteCommand,
Refactor,
ManualInterventionRequired,
Information,
UpdateCargoToml,
RunCargoCommand,
SuggestAlternativeMethod,
}Expand description
Nature of a proposed autocorrection fix
Variants§
TextReplacement
Simple text replacement in a file
AstModification
Modification of the Abstract Syntax Tree (more complex than text replacement)
AddImport
Add an import statement to a file
AddDependency
Add a dependency to a project
ConfigurationChange
Change configuration settings
ExecuteCommand
Execute a command to fix the issue
Refactor
Refactor code (more complex structural changes)
ManualInterventionRequired
Issue requires manual intervention by the developer
Information
Informational fix (provides information but no actual code change)
UpdateCargoToml
Update Cargo.toml file specifically
RunCargoCommand
Run a specific Cargo command
SuggestAlternativeMethod
Suggest an alternative method or approach
Trait Implementations§
impl Copy for FixType
impl Eq for FixType
impl StructuralPartialEq for FixType
Auto Trait Implementations§
impl Freeze for FixType
impl RefUnwindSafe for FixType
impl Send for FixType
impl Sync for FixType
impl Unpin for FixType
impl UnwindSafe for FixType
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