pub struct TaskNotificationMessage {
pub subtype: String,
pub data: Value,
pub task_id: String,
pub status: TaskNotificationStatus,
pub output_file: String,
pub summary: String,
pub uuid: String,
pub session_id: String,
pub tool_use_id: Option<String>,
pub usage: Option<TaskUsage>,
}Expand description
Typed view for system messages with subtype task_notification.
Fields§
§subtype: StringAlways task_notification.
data: ValueRaw system payload.
task_id: StringTask identifier.
status: TaskNotificationStatusTask status.
output_file: StringOutput file path.
summary: StringHuman-readable task summary.
uuid: StringMessage UUID.
session_id: StringSession identifier.
tool_use_id: Option<String>Optional parent tool use id.
usage: Option<TaskUsage>Optional task usage metrics.
Trait Implementations§
Source§impl Clone for TaskNotificationMessage
impl Clone for TaskNotificationMessage
Source§fn clone(&self) -> TaskNotificationMessage
fn clone(&self) -> TaskNotificationMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 TaskNotificationMessage
impl Debug for TaskNotificationMessage
Source§impl<'de> Deserialize<'de> for TaskNotificationMessage
impl<'de> Deserialize<'de> for TaskNotificationMessage
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
Source§impl PartialEq for TaskNotificationMessage
impl PartialEq for TaskNotificationMessage
Source§impl Serialize for TaskNotificationMessage
impl Serialize for TaskNotificationMessage
impl Eq for TaskNotificationMessage
impl StructuralPartialEq for TaskNotificationMessage
Auto Trait Implementations§
impl Freeze for TaskNotificationMessage
impl RefUnwindSafe for TaskNotificationMessage
impl Send for TaskNotificationMessage
impl Sync for TaskNotificationMessage
impl Unpin for TaskNotificationMessage
impl UnsafeUnpin for TaskNotificationMessage
impl UnwindSafe for TaskNotificationMessage
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