#[non_exhaustive]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>,
pub refs: Vec<String>,
}Expand description
13a (13.1): a task to add (Mnemo::task_add).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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.
refs: Vec<String>v0.18.1: what it’s about: finding ids (RB-014.1), files, PRs. Each
is one line, at most 200 bytes, and at most 32 of them.
Implementations§
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