pub struct TaskSpec {
pub title: String,
pub body: String,
pub role: Option<String>,
pub after: Vec<String>,
pub pre_approved: bool,
pub slug: Option<String>,
}Expand description
13a (13.1): a task to add (Mnemo::task_add).
Fields§
§title: StringOne line, at most 200 bytes.
body: StringAt most 8 KB; put more in a fact and name it.
role: Option<String>The role that may take it (worker); None, any.
after: Vec<String>The slugs of the tasks it waits for; each must exist.
pre_approved: boolIts owner may go from ready to done without the creator.
slug: Option<String>Its name; made from the title when left out.
Trait Implementations§
impl Eq for TaskSpec
impl StructuralPartialEq for TaskSpec
Auto Trait Implementations§
impl Forget for TaskSpec
impl Freeze for TaskSpec
impl Move for TaskSpec
impl RefUnwindSafe for TaskSpec
impl Send for TaskSpec
impl Sync for TaskSpec
impl Unpin for TaskSpec
impl UnsafeUnpin for TaskSpec
impl UnwindSafe for TaskSpec
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