pub struct TaskList {
pub session_id: String,
pub title: String,
pub items: Vec<TaskItem>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Task list for a session.
Fields§
§session_id: StringSession ID this task list belongs to.
title: StringTitle of the task list.
items: Vec<TaskItem>List of task items.
created_at: DateTime<Utc>When the list was created.
updated_at: DateTime<Utc>When the list was last updated.
Implementations§
Source§impl TaskList
impl TaskList
Sourcepub fn has_active_execution_tasks(&self) -> bool
pub fn has_active_execution_tasks(&self) -> bool
Returns true if any task is currently in-progress at the Execution or Verification phase — a signal that compression should be deferred when context pressure is moderate.
Sourcepub fn format_for_prompt(&self) -> String
pub fn format_for_prompt(&self) -> String
Format task list for display in system prompt.
Sourcepub fn update_item(
&mut self,
item_id: &str,
status: TaskItemStatus,
notes: Option<&str>,
) -> Result<String, String>
pub fn update_item( &mut self, item_id: &str, status: TaskItemStatus, notes: Option<&str>, ) -> Result<String, String>
Update a task item status.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskList
impl<'de> Deserialize<'de> for TaskList
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskList, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskList, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TaskList
impl Serialize for TaskList
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TaskList
impl RefUnwindSafe for TaskList
impl Send for TaskList
impl Sync for TaskList
impl Unpin for TaskList
impl UnsafeUnpin for TaskList
impl UnwindSafe for TaskList
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