Enum todo_lib::todo::Action [−][src]
pub enum Action {
None,
Set,
Delete,
Replace,
Increase,
Decrease,
}
Expand description
Type of operation applied to todo properties. Every field supports
its own set of operations (except None
that can be used for all of them):
- priority:
Set
,Delete
,Increase
,Decrease
; - due date:
Set
,Delete
; - recurrence:
Set
,Delete
; - projects:
Set
,Delete
,Replace
; - contexts:
Set
,Delete
,Replace
;
Variants
do not touch the property
Priority, due date, and recurrence: set the new value; Projects and contexts: add a new value to the list;
Remove the value
Replace old value with a new one. The format for the new value:
projects: old_value+new_value
contexts: old_value@new_value
Only for priority: increases the priority by one level. If a todo
has A priority the todo is not changed. If a todo does not have a
priority it gets the lowest one Z
Only for priority: decreases the priority by one level. If a todo
has no priority the todo is not changed. If a todo has the lowest
priority Z
the priority is removed
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Action
impl UnwindSafe for Action
Blanket Implementations
Mutably borrows from an owned value. Read more