pub struct ServerContent {
pub model_turn: Option<Content>,
pub turn_complete: Option<bool>,
pub generation_complete: Option<bool>,
pub interrupted: Option<bool>,
pub input_transcription: Option<Transcription>,
pub output_transcription: Option<Transcription>,
pub grounding_metadata: Option<Value>,
pub url_context_metadata: Option<Value>,
}Expand description
Model output and associated metadata within a single wire message.
Fields§
§model_turn: Option<Content>§turn_complete: Option<bool>§generation_complete: Option<bool>true once the model has finished generating (the turn may still be
open for transcription, grounding, etc.).
interrupted: Option<bool>§input_transcription: Option<Transcription>§output_transcription: Option<Transcription>§grounding_metadata: Option<Value>Grounding metadata (schema may evolve — kept as opaque JSON).
url_context_metadata: Option<Value>Trait Implementations§
Source§impl Clone for ServerContent
impl Clone for ServerContent
Source§fn clone(&self) -> ServerContent
fn clone(&self) -> ServerContent
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 ServerContent
impl Debug for ServerContent
Source§impl<'de> Deserialize<'de> for ServerContent
impl<'de> Deserialize<'de> for ServerContent
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 ServerContent
impl RefUnwindSafe for ServerContent
impl Send for ServerContent
impl Sync for ServerContent
impl Unpin for ServerContent
impl UnsafeUnpin for ServerContent
impl UnwindSafe for ServerContent
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