pub struct Step {
pub name: String,
pub status: StepStatus,
pub sub_steps: Vec<SubStep>,
pub expanded: bool,
pub output: Vec<String>,
pub scroll: u16,
}Expand description
A step in the process
Fields§
§name: StringName of the step
status: StepStatusCurrent status
sub_steps: Vec<SubStep>Sub-steps
expanded: boolWhether the output is expanded
output: Vec<String>Output lines
scroll: u16Output scroll position
Implementations§
Source§impl Step
impl Step
Sourcepub fn with_sub_steps(self, names: Vec<&str>) -> Self
pub fn with_sub_steps(self, names: Vec<&str>) -> Self
Add sub-steps
Sourcepub fn add_output(&mut self, line: impl Into<String>)
pub fn add_output(&mut self, line: impl Into<String>)
Add a line to output
Sourcepub fn clear_output(&mut self)
pub fn clear_output(&mut self)
Clear output
Sourcepub fn sub_step_progress(&self) -> (usize, usize)
pub fn sub_step_progress(&self) -> (usize, usize)
Get sub-step progress (completed, total)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnwindSafe for Step
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more