Struct ServerContentPayload
pub struct ServerContentPayload {
pub model_turn: Option<Content>,
pub turn_complete: Option<bool>,
pub generation_complete: Option<bool>,
pub interrupted: Option<bool>,
pub input_transcription: Option<TranscriptionPayload>,
pub output_transcription: Option<TranscriptionPayload>,
pub grounding_metadata: Option<GroundingMetadata>,
pub url_context_metadata: Option<UrlContextMetadata>,
pub turn_complete_reason: Option<String>,
pub waiting_for_input: Option<bool>,
}Expand description
Payload for server content.
Fields§
§model_turn: Option<Content>Model output content for this turn.
turn_complete: Option<bool>Whether the model’s turn is complete.
generation_complete: Option<bool>Whether all generation (including tool use) is complete.
interrupted: Option<bool>Whether the model was interrupted by user barge-in.
input_transcription: Option<TranscriptionPayload>Transcription of user audio input.
output_transcription: Option<TranscriptionPayload>Transcription of model audio output.
grounding_metadata: Option<GroundingMetadata>Grounding metadata from search results.
url_context_metadata: Option<UrlContextMetadata>URL context metadata for content sourced from URLs.
turn_complete_reason: Option<String>Reason why the model’s turn completed (e.g. “STOP”, “MAX_TOKENS”).
waiting_for_input: Option<bool>Whether the server is waiting for user input.
Trait Implementations§
§impl Clone for ServerContentPayload
impl Clone for ServerContentPayload
§fn clone(&self) -> ServerContentPayload
fn clone(&self) -> ServerContentPayload
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 more§impl Debug for ServerContentPayload
impl Debug for ServerContentPayload
§impl<'de> Deserialize<'de> for ServerContentPayload
impl<'de> Deserialize<'de> for ServerContentPayload
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerContentPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerContentPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServerContentPayload
impl RefUnwindSafe for ServerContentPayload
impl Send for ServerContentPayload
impl Sync for ServerContentPayload
impl Unpin for ServerContentPayload
impl UnwindSafe for ServerContentPayload
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