pub struct AddTaskOptions {
pub payload: Option<Value>,
pub parent_change: Option<String>,
pub on_complete: Option<OnCompleteHook>,
pub notes: Option<String>,
}Expand description
Optional extension fields for TaskStore::add_task_with_extensions.
payload: opaque JSON the task carries for a downstream consumer. The-taskscrate does not interpret it.parent_change: identifier of the change this task gates, when created from a deferredChangeProposal.on_complete: hook the consumer dispatches when the task transitions toDone. The-taskscrate does not execute it.notes: the task’s notes, asTaskStore::set_notestakes them. Blank text is no notes; more thanMAX_NOTES_BYTESis refused.
Fields§
§payload: Option<Value>§parent_change: Option<String>§on_complete: Option<OnCompleteHook>§notes: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Forget for AddTaskOptions
impl Freeze for AddTaskOptions
impl Move for AddTaskOptions
impl RefUnwindSafe for AddTaskOptions
impl Send for AddTaskOptions
impl Sync for AddTaskOptions
impl Unpin for AddTaskOptions
impl UnsafeUnpin for AddTaskOptions
impl UnwindSafe for AddTaskOptions
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