pub enum PromptAction {
Save {
task: Task,
text: String,
sections: BTreeMap<String, String>,
note: Option<String>,
},
Activate {
task: Task,
n: u32,
},
Deactivate {
task: Task,
},
Delete {
task: Task,
n: u32,
},
}Variants§
Save
A new version, not in use until activated.
Fields
Activate
Deactivate
Back to the built-in prompt.
Delete
Trait Implementations§
Source§impl Clone for PromptAction
impl Clone for PromptAction
Source§impl Debug for PromptAction
impl Debug for PromptAction
Source§impl<'de> Deserialize<'de> for PromptAction
impl<'de> Deserialize<'de> for PromptAction
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 PromptAction
impl Freeze for PromptAction
impl RefUnwindSafe for PromptAction
impl Send for PromptAction
impl Sync for PromptAction
impl Unpin for PromptAction
impl UnsafeUnpin for PromptAction
impl UnwindSafe for PromptAction
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