Skip to main content

StepTypeResult

Enum StepTypeResult 

Source
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

Fields

§stdout: String
§stderr: String
§exit_code: i32
§

Read

Fields

§path: String
§files_filtered: usize
§filter_reason: Option<String>
§

Write

Fields

§path: String
§

Patch

Fields

§path: String
§edits_applied: usize
§

Mv

Fields

§from: String
§

Cp

Fields

§from: String
§

Rm

Fields

§path: String
§

Mkdir

Fields

§path: String
§

Grep

Fields

§pattern: String
§matches: Vec<GrepMatch>
§

Replace

Fields

§pattern: String
§replacement: String
§files_scanned: usize
§files_modified: usize
§total_replacements: usize
§

Scan

Fields

§path: String
§stack: Vec<String>
§entry_points: Vec<String>
§file_count: usize
§imports_graph: HashMap<String, Vec<String>>
§

Summarize

Fields

§path: String
§summary: FileSummary
§

Extract

Fields

§path: String
§data: Value
§

Diff

Fields

§added: usize
§removed: usize
§changed_sections: Vec<String>
§is_identical: bool
§unified_diff: Option<String>
§

Lint

Fields

§errors_count: usize
§warnings_count: usize
§errors: Vec<LintError>
§

Template

Fields

§output: String
§rendered: bool
§

Snapshot

Fields

§path: String
§archived: bool
§

Restore

Fields

§restored: bool
§

Git

Fields

§output: Value
§

Http

Fields

§method: String
§status: u16
§

Import

Fields

§path: String
§added: Vec<String>
§removed: Vec<String>
§organized: bool
§

Refactor

Fields

§symbol: String
§rename_to: String
§files_scanned: usize
§files_modified: usize
§total_replacements: usize
§dry_run: bool
§

Deps

Fields

§path: String
§dependents: HashMap<String, Vec<String>>
§file_count: usize
§cycles: Vec<Vec<String>>
§

Checkpoint

Fields

§checkpoint_id: String
§action: String
§steps_saved: usize
§

Boilerplate

Fields

§path: String
§header_added: bool
§license_added: bool
§shebang_added: bool
§imports_added: Vec<String>
§

DeadCode

Fields

§path: String
§unused_functions: Vec<DeadCodeIssue>
§unused_variables: Vec<DeadCodeIssue>
§unused_imports: Vec<DeadCodeIssue>
§unreachable_code: Vec<DeadCodeIssue>
§

If

Fields

§condition_met: bool
§branch: String
§results: Vec<StepResult>
§

Each

Fields

§items: Vec<String>
§results: Vec<StepResult>
§

Parallel

Fields

§results: Vec<StepResult>

Implementations§

Source§

impl StepTypeResult

Source

pub fn step_type_name(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for StepTypeResult

Source§

fn clone(&self) -> StepTypeResult

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StepTypeResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for StepTypeResult

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for StepTypeResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,