pub struct StepRecord {
pub id: String,
pub answer: Option<String>,
pub skipped: bool,
pub ended: bool,
pub attempts: Vec<Attempt>,
pub items: Vec<ItemRecord>,
}Expand description
One step of the run.
Fields§
§id: StringThe step’s id.
answer: Option<String>Its answer, once it passed.
skipped: boolWhether it was skipped: its path was not taken, or the person went on without it.
ended: boolWhether it has ended, passed or skipped, and is not to be done again.
attempts: Vec<Attempt>Each try at its work. Work sent back to it adds more.
items: Vec<ItemRecord>Each item, for a step done for each item.
Implementations§
Trait Implementations§
Source§impl Clone for StepRecord
impl Clone for StepRecord
Source§impl Debug for StepRecord
impl Debug for StepRecord
Source§impl<'de> Deserialize<'de> for StepRecord
impl<'de> Deserialize<'de> for StepRecord
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
Auto Trait Implementations§
impl Forget for StepRecord
impl Freeze for StepRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Attempt>: Freeze,
PhantomData<ItemRecord>: Freeze,
impl Move for StepRecord
impl RefUnwindSafe for StepRecord
impl Send for StepRecordwhere
RawVecInner: Send,
impl Sync for StepRecordwhere
RawVecInner: Sync,
impl Unpin for StepRecord
impl UnsafeUnpin for StepRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Attempt>: UnsafeUnpin,
PhantomData<ItemRecord>: UnsafeUnpin,
impl UnwindSafe for StepRecordwhere
RawVecInner: UnwindSafe,
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