pub enum TodoOp {
Init {
list: Option<Vec<InitListEntry>>,
items: Option<Vec<String>>,
},
Start {
task: Option<String>,
phase: Option<String>,
},
Done {
task: Option<String>,
phase: Option<String>,
},
Drop {
task: Option<String>,
phase: Option<String>,
},
Rm {
task: Option<String>,
phase: Option<String>,
},
Append {
phase: String,
items: Vec<String>,
},
Block {
task: Option<String>,
phase: Option<String>,
reason: Option<String>,
},
Unblock {
task: Option<String>,
phase: Option<String>,
},
View,
}Expand description
Stable since 0.63.0
Operations that can be applied to a todo list.Variants§
Init
Initialize or replace the todo list.
Fields
§
list: Option<Vec<InitListEntry>>Optional structured phase definitions.
Start
Mark matching tasks as in progress.
Done
Mark matching tasks as completed.
Drop
Mark matching tasks as abandoned.
Rm
Remove matching tasks entirely.
Append
Append tasks to a phase, creating it if it does not exist.
Block
Mark matching tasks as blocked (waiting on external input). Terminal states (Completed/Abandoned) are left untouched.
Fields
Unblock
Return matching blocked tasks to pending.
View
Return the current state without modifying it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TodoOp
impl<'de> Deserialize<'de> for TodoOp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TodoOp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TodoOp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TodoOp
impl Serialize for TodoOp
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TodoOp
impl RefUnwindSafe for TodoOp
impl Send for TodoOp
impl Sync for TodoOp
impl Unpin for TodoOp
impl UnsafeUnpin for TodoOp
impl UnwindSafe for TodoOp
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