pub enum InteractionsInput {
Text(String),
Content(Content),
Contents(Vec<Content>),
Turns(Vec<Turn>),
}Expand description
Input can be Content, array of Content, array of Turn, or string See: https://ai.google.dev/api/interactions-api#request-body
Variants§
Text(String)
Simple text input
Content(Content)
Single content block
Contents(Vec<Content>)
Array of content blocks
Turns(Vec<Turn>)
Array of turns (conversation history)
Trait Implementations§
Source§impl Clone for InteractionsInput
impl Clone for InteractionsInput
Source§fn clone(&self) -> InteractionsInput
fn clone(&self) -> InteractionsInput
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 InteractionsInput
impl Debug for InteractionsInput
Source§impl<'de> Deserialize<'de> for InteractionsInput
impl<'de> Deserialize<'de> for InteractionsInput
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 InteractionsInput
impl RefUnwindSafe for InteractionsInput
impl Send for InteractionsInput
impl Sync for InteractionsInput
impl Unpin for InteractionsInput
impl UnsafeUnpin for InteractionsInput
impl UnwindSafe for InteractionsInput
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