pub struct Entry<'a> {Show 16 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 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§
§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.
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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Entry<'a>
impl<'a> RefUnwindSafe for Entry<'a>
impl<'a> Send for Entry<'a>
impl<'a> Sync for Entry<'a>
impl<'a> Unpin for Entry<'a>
impl<'a> UnsafeUnpin for Entry<'a>
impl<'a> UnwindSafe for Entry<'a>
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