pub struct ChecklistItem {
pub id: usize,
pub text: String,
pub done: bool,
pub note: Option<String>,
}Expand description
One row of a RegionKind::Checklist region.
A projection of a RegionEntry, not a second storage: the item’s text is
the entry’s content and its state is the entry’s metadata, so a checklist
persists, carries across a stage swap and restores from a snapshot with no
extra plumbing.
Fields§
§id: usizeStable identifier the todo_* tools address, assigned on add.
text: StringWhat the item says.
done: boolWhether it has been ticked off.
note: Option<String>Anything the agent recorded against it.
Trait Implementations§
Source§impl Clone for ChecklistItem
impl Clone for ChecklistItem
Source§fn clone(&self) -> ChecklistItem
fn clone(&self) -> ChecklistItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChecklistItem
impl Debug for ChecklistItem
impl Eq for ChecklistItem
Source§impl PartialEq for ChecklistItem
impl PartialEq for ChecklistItem
impl StructuralPartialEq for ChecklistItem
Auto Trait Implementations§
impl Freeze for ChecklistItem
impl RefUnwindSafe for ChecklistItem
impl Send for ChecklistItem
impl Sync for ChecklistItem
impl Unpin for ChecklistItem
impl UnsafeUnpin for ChecklistItem
impl UnwindSafe for ChecklistItem
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.