pub struct ContentData {
pub parts: Vec<Part>,
pub role: String,
}Expand description
Content data structure (matches ADK Content)
Fields§
§parts: Vec<Part>Content parts
role: StringRole (user, model, tool)
Implementations§
Source§impl ContentData
impl ContentData
Trait Implementations§
Source§impl Clone for ContentData
impl Clone for ContentData
Source§fn clone(&self) -> ContentData
fn clone(&self) -> ContentData
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 ContentData
impl Debug for ContentData
Source§impl<'de> Deserialize<'de> for ContentData
impl<'de> Deserialize<'de> for ContentData
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 ContentData
impl RefUnwindSafe for ContentData
impl Send for ContentData
impl Sync for ContentData
impl Unpin for ContentData
impl UnwindSafe for ContentData
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