pub struct Todo {
pub id: i64,
pub task_id: i64,
pub task_index: i64,
pub content: String,
pub status: TodoStatus,
pub worktree_requested: bool,
pub requires_workspace: bool,
pub created_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
}Expand description
Represents a TODO item within a task.
TODOs are task-scoped action items. Each TODO has a task-specific index and can optionally request a JJ workspace for isolated development.
Fields§
§id: i64§task_id: i64§task_index: i64Task-scoped sequential ID for this TODO
content: String§status: TodoStatus§worktree_requested: bool§requires_workspace: boolWhen false, this TODO does not require a jj-task/git workspace (e.g. research).
created_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>Implementations§
Source§impl Todo
impl Todo
Sourcepub fn content_html(&self) -> String
pub fn content_html(&self) -> String
Converts the todo content from markdown to HTML.
This method uses pulldown-cmark to parse the markdown content and render it as HTML. Plain URLs are automatically converted to clickable links. All links open in new tabs with target=“_blank”. The output is safe for display in web pages.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Todo
impl RefUnwindSafe for Todo
impl Send for Todo
impl Sync for Todo
impl Unpin for Todo
impl UnsafeUnpin for Todo
impl UnwindSafe for Todo
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