pub struct TrackerSnapshot {
pub title: String,
pub completed: usize,
pub total: usize,
pub items: Vec<TrackerItemState>,
}Expand description
Bounded checklist snapshot published after a task_tracker mutation.
completed/total always describe the full checklist even when items
is empty (explicit counts win over derived ones, mirroring the CLI
progress line). Derived views replay the newest snapshot per session.
Fields§
§title: StringRaw checklist title; views humanize generated timestamp slugs.
completed: usizeFinished items in the full checklist.
total: usizeRenderable items in the full checklist.
items: Vec<TrackerItemState>Item tree in checklist order. Tool-assigned index paths are unique within a snapshot, so views may key rows on them.
Trait Implementations§
Source§impl Clone for TrackerSnapshot
impl Clone for TrackerSnapshot
Source§impl Debug for TrackerSnapshot
impl Debug for TrackerSnapshot
Source§impl<'de> Deserialize<'de> for TrackerSnapshot
impl<'de> Deserialize<'de> for TrackerSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TrackerSnapshot
Source§impl JsonSchema for TrackerSnapshot
impl JsonSchema for TrackerSnapshot
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 moreSource§impl PartialEq for TrackerSnapshot
impl PartialEq for TrackerSnapshot
Source§impl Serialize for TrackerSnapshot
impl Serialize for TrackerSnapshot
impl StructuralPartialEq for TrackerSnapshot
Auto Trait Implementations§
impl Forget for TrackerSnapshot
impl Freeze for TrackerSnapshot
impl RefUnwindSafe for TrackerSnapshot
impl Send for TrackerSnapshot
impl Sync for TrackerSnapshot
impl Unpin for TrackerSnapshot
impl UnsafeUnpin for TrackerSnapshot
impl UnwindSafe for TrackerSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.