pub enum Status {
Pending,
InProgress,
Done,
Cancelled,
}Expand description
Where one step stands.
Four, not three: Cancelled is not Done, and a list that cannot say “this was dropped” makes
a model silently drop it instead, which is the loss the whole table exists to prevent.
Variants§
Implementations§
Source§impl Status
impl Status
pub fn as_str(self) -> &'static str
Sourcepub fn parse(word: &str) -> Option<Self>
pub fn parse(word: &str) -> Option<Self>
The word from the tool’s own vocabulary. in_progress also accepts the two spellings a
model reaches for first, because refusing them teaches it to retry rather than to write.
Sourcepub fn mark(self) -> &'static str
pub fn mark(self) -> &'static str
[ ], [▸], [x], [-] — one column, so a list reads down the left edge.
Sourcepub fn is_finished(self) -> bool
pub fn is_finished(self) -> bool
Finished, one way or the other: not worth a line in a handoff.
Trait Implementations§
impl Copy for Status
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Forget for Status
impl Freeze for Status
impl Move for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.