pub struct ProgressView {
pub done: Option<i32>,
pub next: Option<String>,
pub percent: Option<i32>,
pub total: Option<i32>,
}Fields§
§done: Option<i32>Done counts steps that are FINISHED — done and skipped alike, since a step the org deliberately passed over is not still owed. It therefore rises when somebody skips, which is the intended reading of a checklist.
next: Option<String>Next is the id of the step to do next: the first available, unfinished step in authoring order. Empty when the journey is complete, and also empty when every remaining step is blocked by a dependency.
percent: Option<i32>Percent is done/total as a whole number 0-100, rounded, so a caller renders a bar without recomputing it. Total zero reads as 0.
total: Option<i32>Total is how many steps this org’s journey holds — the ENABLED steps of the playbook, so it shrinks when an operator disables one and does not match the authored step count.
Implementations§
Source§impl ProgressView
impl ProgressView
pub fn new() -> ProgressView
Trait Implementations§
Source§impl Clone for ProgressView
impl Clone for ProgressView
Source§fn clone(&self) -> ProgressView
fn clone(&self) -> ProgressView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProgressView
impl Debug for ProgressView
Source§impl Default for ProgressView
impl Default for ProgressView
Source§fn default() -> ProgressView
fn default() -> ProgressView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProgressView
impl<'de> Deserialize<'de> for ProgressView
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
Source§impl PartialEq for ProgressView
impl PartialEq for ProgressView
Source§impl Serialize for ProgressView
impl Serialize for ProgressView
impl StructuralPartialEq for ProgressView
Auto Trait Implementations§
impl Freeze for ProgressView
impl RefUnwindSafe for ProgressView
impl Send for ProgressView
impl Sync for ProgressView
impl Unpin for ProgressView
impl UnsafeUnpin for ProgressView
impl UnwindSafe for ProgressView
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