(&self, todos: Vec<TodoItemData>)
| 595 | } |
| 596 | |
| 597 | pub async fn do_todo_update(&self, todos: Vec<TodoItemData>) -> Result<(), ToolError> { |
| 598 | if let Some(ref callback) = self.todo_update { |
| 599 | callback(self.session_id.clone(), todos).await |
| 600 | } else { |
| 601 | Ok(()) |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | pub fn with_todo_get<F, Fut>(mut self, callback: F) -> Self |
| 606 | where |