pub struct Message {
pub message_id: String,
pub context_id: Option<String>,
pub task_id: Option<String>,
pub role: Role,
pub parts: Vec<Part>,
pub metadata: Option<Value>,
pub extensions: Vec<String>,
pub reference_task_ids: Option<Vec<String>>,
}Expand description
Message structure per A2A RC 1.0 proto spec
Fields§
§message_id: StringUnique message identifier
context_id: Option<String>Optional conversation context ID
task_id: Option<String>Optional task reference
role: RoleMessage role (user or agent)
parts: Vec<Part>Message content parts
metadata: Option<Value>Custom metadata
extensions: Vec<String>Extension URIs
reference_task_ids: Option<Vec<String>>Optional related task IDs
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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