pub struct A2aMessage {
pub message_id: String,
pub role: String,
pub parts: Vec<A2aPart>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
An A2A message exchanged between agents.
Fields§
§message_id: StringUnique identifier for this message.
role: StringRole of the message sender (“user” or “agent”).
parts: Vec<A2aPart>The content parts of the message.
metadata: Option<HashMap<String, Value>>Optional metadata attached to the message.
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 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