pub struct Step {
pub title: String,
pub description: Option<String>,
pub status: StepStatus,
pub icon: Option<char>,
}Expand description
Step definition
Fields§
§title: StringStep title
description: Option<String>Step description
status: StepStatusStep status
icon: Option<char>Custom icon
Implementations§
Source§impl Step
impl Step
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Set description
Sourcepub fn status(self, status: StepStatus) -> Self
pub fn status(self, status: StepStatus) -> Self
Set status
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 UnsafeUnpin 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