pub struct Task {
pub id: String,
pub done: bool,
pub parallel: bool,
pub story: Option<String>,
pub yours: bool,
pub title: String,
pub depends_on: Vec<String>,
pub phase: Option<String>,
pub subsection: Option<String>,
pub line: u32,
pub byte_range: [usize; 2],
pub line_hash: String,
}Expand description
One task line of tasks.md, as written.
Fields§
§id: StringTask ID, e.g. T014.
done: bool[x] or [X].
parallel: boolCarries the [P] marker.
story: Option<String>Story label without brackets, e.g. US1.
yours: boolCarries the [YOU] label: a step only a person can take.
title: StringText after the ID and markers.
depends_on: Vec<String>Task IDs named after depends on / after in the text, in order.
phase: Option<String>Enclosing level-2 heading.
subsection: Option<String>Enclosing level-3 heading within the phase.
line: u321-based line.
byte_range: [usize; 2]Byte range [start, end) of the list item in the file.
line_hash: StringSHA-256 (hex) of the task’s line, without its line ending.
Trait Implementations§
impl Eq for Task
Source§impl JsonSchema for Task
impl JsonSchema for Task
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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