pub enum A2aPart {
Text {
text: String,
metadata: Option<HashMap<String, Value>>,
},
File {
file: A2aFileContent,
metadata: Option<HashMap<String, Value>>,
},
Data {
data: Value,
metadata: Option<HashMap<String, Value>>,
},
}Expand description
A2A part — discriminated by kind.
Variants§
Text
A plain text part.
Fields
File
A file attachment part.
Fields
§
file: A2aFileContentThe file content (inline bytes or URI).
Data
A structured data part (function calls, code execution, etc.).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for A2aPart
impl<'de> Deserialize<'de> for A2aPart
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 A2aPart
impl RefUnwindSafe for A2aPart
impl Send for A2aPart
impl Sync for A2aPart
impl Unpin for A2aPart
impl UnwindSafe for A2aPart
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