pub struct TaskItem {
pub id: String,
pub object: String,
pub created_at: i64,
pub thread_id: String,
pub task_type: TaskType,
pub heading: Option<String>,
pub summary: Option<String>,
}Expand description
Task emitted by the workflow to show progress and status updates.
Fields§
§id: StringIdentifier of the thread item.
object: StringType discriminator that is always chatkit.thread_item.
created_at: i64Unix timestamp (in seconds) for when the item was created.
thread_id: StringIdentifier of the parent thread.
task_type: TaskTypeSubtype for the task.
heading: Option<String>Optional heading for the task. Defaults to null when not provided.
summary: Option<String>Optional summary that describes the task. Defaults to null when omitted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskItem
impl<'de> Deserialize<'de> for TaskItem
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 StructuralPartialEq for TaskItem
Auto Trait Implementations§
impl Freeze for TaskItem
impl RefUnwindSafe for TaskItem
impl Send for TaskItem
impl Sync for TaskItem
impl Unpin for TaskItem
impl UnwindSafe for TaskItem
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