pub struct V1Task {
pub id: String,
pub context_id: String,
pub status: V1TaskStatus,
pub history: Option<Vec<Value>>,
pub artifacts: Option<Vec<Value>>,
}Expand description
An A2A v1.0 Task returned by message/send.
Deserialized from the JSON-RPC result of message/send (and compatible with
tasks/get). All fields default so partial server responses still parse.
Fields§
§id: StringTask identifier.
context_id: StringContext (conversation) identifier grouping related messages.
status: V1TaskStatusCurrent task status.
history: Option<Vec<Value>>Message/turn history, when the server returns it.
artifacts: Option<Vec<Value>>Artifacts produced by the task, when present.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for V1Task
impl<'de> Deserialize<'de> for V1Task
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
Auto Trait Implementations§
impl Freeze for V1Task
impl RefUnwindSafe for V1Task
impl Send for V1Task
impl Sync for V1Task
impl Unpin for V1Task
impl UnsafeUnpin for V1Task
impl UnwindSafe for V1Task
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