pub struct A2AMessage {
pub task_id: String,
pub role: String,
pub content: String,
pub timestamp: DateTime<Utc>,
}Expand description
A message exchanged during an A2A task.
Fields§
§task_id: StringThe task this message belongs to.
role: StringRole of the sender (e.g. “user”, “agent”).
content: StringThe message content.
timestamp: DateTime<Utc>When the message was sent.
Trait Implementations§
Source§impl Clone for A2AMessage
impl Clone for A2AMessage
Source§fn clone(&self) -> A2AMessage
fn clone(&self) -> A2AMessage
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 A2AMessage
impl Debug for A2AMessage
Source§impl<'de> Deserialize<'de> for A2AMessage
impl<'de> Deserialize<'de> for A2AMessage
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 A2AMessage
impl RefUnwindSafe for A2AMessage
impl Send for A2AMessage
impl Sync for A2AMessage
impl Unpin for A2AMessage
impl UnsafeUnpin for A2AMessage
impl UnwindSafe for A2AMessage
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