pub enum StepTypeResult {
Show 29 variants
Bash {
cmd: String,
stdout: String,
stderr: String,
exit_code: i32,
},
Read {
path: String,
files: Vec<FileContent>,
files_filtered: usize,
filter_reason: Option<String>,
},
Write {
path: String,
diff: Option<String>,
},
Patch {
path: String,
edits_applied: usize,
diff: Option<String>,
},
Mv {
from: String,
to: String,
},
Cp {
from: String,
to: String,
},
Rm {
path: String,
},
Mkdir {
path: String,
},
Grep {
pattern: String,
matches: Vec<GrepMatch>,
},
Replace {
pattern: String,
replacement: String,
files_scanned: usize,
files_modified: usize,
total_replacements: usize,
},
Scan {
path: String,
stack: Vec<String>,
entry_points: Vec<String>,
file_count: usize,
tree: HashMap<String, Vec<String>>,
exports: HashMap<String, Vec<String>>,
imports_graph: HashMap<String, Vec<String>>,
},
Summarize {
path: String,
summary: FileSummary,
},
Extract {
path: String,
data: Value,
},
Diff {
a: String,
b: String,
added: usize,
removed: usize,
changed_sections: Vec<String>,
is_identical: bool,
unified_diff: Option<String>,
},
Lint {
errors_count: usize,
warnings_count: usize,
errors: Vec<LintError>,
},
Template {
output: String,
rendered: bool,
},
Snapshot {
path: String,
id: String,
archived: bool,
},
Restore {
id: String,
restored: bool,
},
Git {
op: String,
output: Value,
},
Http {
method: String,
url: String,
status: u16,
body: Option<String>,
},
Import {
path: String,
added: Vec<String>,
removed: Vec<String>,
organized: bool,
},
Refactor {
symbol: String,
rename_to: String,
files_scanned: usize,
files_modified: usize,
total_replacements: usize,
dry_run: bool,
changes: Vec<RefactorChange>,
},
Deps {
path: String,
graph: HashMap<String, Vec<String>>,
dependents: HashMap<String, Vec<String>>,
file_count: usize,
cycles: Vec<Vec<String>>,
},
Checkpoint {
checkpoint_id: String,
action: String,
steps_saved: usize,
},
Boilerplate {
path: String,
header_added: bool,
license_added: bool,
shebang_added: bool,
imports_added: Vec<String>,
},
DeadCode {
path: String,
unused_functions: Vec<DeadCodeIssue>,
unused_variables: Vec<DeadCodeIssue>,
unused_imports: Vec<DeadCodeIssue>,
unreachable_code: Vec<DeadCodeIssue>,
},
If {
condition_met: bool,
branch: String,
results: Vec<StepResult>,
},
Each {
items: Vec<String>,
results: Vec<StepResult>,
},
Parallel {
results: Vec<StepResult>,
},
}Variants§
Bash
Read
Write
Patch
Mv
Cp
Rm
Mkdir
Grep
Replace
Fields
Scan
Fields
Summarize
Extract
Diff
Fields
Lint
Template
Snapshot
Restore
Git
Http
Import
Refactor
Fields
§
changes: Vec<RefactorChange>Deps
Fields
Checkpoint
Boilerplate
Fields
DeadCode
Fields
§
unused_functions: Vec<DeadCodeIssue>§
unused_variables: Vec<DeadCodeIssue>§
unused_imports: Vec<DeadCodeIssue>§
unreachable_code: Vec<DeadCodeIssue>If
Each
Parallel
Fields
§
results: Vec<StepResult>Implementations§
Source§impl StepTypeResult
impl StepTypeResult
pub fn step_type_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for StepTypeResult
impl Clone for StepTypeResult
Source§fn clone(&self) -> StepTypeResult
fn clone(&self) -> StepTypeResult
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 StepTypeResult
impl Debug for StepTypeResult
Source§impl<'de> Deserialize<'de> for StepTypeResult
impl<'de> Deserialize<'de> for StepTypeResult
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 StepTypeResult
impl RefUnwindSafe for StepTypeResult
impl Send for StepTypeResult
impl Sync for StepTypeResult
impl Unpin for StepTypeResult
impl UnsafeUnpin for StepTypeResult
impl UnwindSafe for StepTypeResult
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