#[non_exhaustive]pub struct Entry<'a> {Show 17 fields
pub id: u32,
pub kind: &'static str,
pub title: &'a str,
pub status: Option<&'static str>,
pub decision: Option<&'static str>,
pub asked: Option<&'static str>,
pub tags: &'a [String],
pub links: &'a [u32],
pub repo_links: Vec<String>,
pub linked_from: Vec<u32>,
pub created: String,
pub description: &'a str,
pub comments: Vec<EntryComment<'a>>,
pub activity: Vec<EntryChange<'a>>,
pub tracked_minutes: Option<i64>,
pub running: bool,
pub path: Option<String>,
}Expand description
An entry with everything an agent needs to act on it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u32The id to pass to other commands.
kind: &'static strtask, note or decision.
title: &'a strOne-line title.
status: Option<&'static str>Tasks only: todo, doing, parked or done.
decision: Option<&'static str>Decisions only: accepted, proposed or rejected.
asked: Option<&'static str>A parked task’s question: waiting for an answer or answered.
Lowercase, without #.
links: &'a [u32]Ids this entry links to. Empty fields are left out, as every token counts for an agent.
repo_links: Vec<String>Entries of the project’s other repositories this one links to, as shop-api#3.
linked_from: Vec<u32>Ids of entries linking to this one.
created: StringRFC 3339.
description: &'a strFree text (markdown).
comments: Vec<EntryComment<'a>>Oldest first.
activity: Vec<EntryChange<'a>>Changes to the title, tags, related entries and description, oldest first.
tracked_minutes: Option<i64>Tracked time in minutes, if the task was ever tracked.
running: boolWhether the task’s clock is running now; only present when it is.
path: Option<String>The markdown file, to read; a change goes through kb, which takes the brain’s lock.