pub struct Step { /* private fields */ }Expand description
One step of a process. Children are extra content under the description.
Step![title = "Payment", description = "Card or bank transfer"]
Implementations§
Source§impl Step
impl Step
pub fn new() -> Self
Sourcepub fn with(self, part: impl Part) -> Self
pub fn with(self, part: impl Part) -> Self
Add an attribute (class(..), id(..), aria(..), …) or a child.
pub fn title(self, v: impl Into<String>) -> Self
pub fn description(self, v: impl Into<String>) -> Self
Sourcepub fn status(self, v: StepStatus) -> Self
pub fn status(self, v: StepStatus) -> Self
Override the status Steps![current = ..] implies.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Step
impl !Sync for Step
impl !UnwindSafe for Step
impl Forget for Step
impl Freeze for Step
impl Move for Step
impl Send for Step
impl Unpin for Step
impl UnsafeUnpin 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