pub struct ClientContent {
pub turns: Option<Vec<Content>>,
pub turn_complete: Option<bool>,
}Expand description
Conversation history or incremental content.
On Gemini 2.5 this can be sent at any time during the session.
On Gemini 3.1 it can only be sent as initial history (before the first
realtimeInput), and requires historyConfig.initialHistoryInClientContent = true.
Fields§
§turns: Option<Vec<Content>>§turn_complete: Option<bool>Trait Implementations§
Source§impl Clone for ClientContent
impl Clone for ClientContent
Source§fn clone(&self) -> ClientContent
fn clone(&self) -> ClientContent
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 ClientContent
impl Debug for ClientContent
Auto Trait Implementations§
impl Freeze for ClientContent
impl RefUnwindSafe for ClientContent
impl Send for ClientContent
impl Sync for ClientContent
impl Unpin for ClientContent
impl UnsafeUnpin for ClientContent
impl UnwindSafe for ClientContent
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