pub struct Task {
pub id: String,
pub context_id: String,
pub state: PeerTaskState,
pub message: Option<Message>,
pub timestamp: Option<String>,
}Expand description
An A2A task.
Fields§
§id: StringTask id.
context_id: StringThe conversation.
state: PeerTaskStateWhere it stands.
message: Option<Message>The answer, the reason, the question, or progress.
timestamp: Option<String>When it changed (RFC 3339).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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