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
; - tags:
Set
,Delete
;
Variants§
None
do not touch the property
Set
Priority, due date, and recurrence: set the new value; Projects and contexts: add a new value to the list;
Delete
Remove the value
Replace
Replace old value with a new one. The format for the new value:
projects: old_value+new_value
contexts: old_value@new_value
Increase
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
Decrease
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 Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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