#[non_exhaustive]pub struct LiveServerMessage {
pub setup_complete: Option<BidiGenerateContentSetupComplete>,
pub server_content: Option<BidiGenerateContentServerContent>,
pub tool_call: Option<BidiGenerateContentToolCall>,
pub tool_call_cancellation: Option<BidiGenerateContentToolCallCancellation>,
pub go_away: Option<GoAway>,
pub session_resumption_update: Option<SessionResumptionUpdate>,
pub usage_metadata: Option<LiveUsageMetadata>,
pub voice_activity_detection_signal: Option<VoiceActivityDetectionSignal>,
pub voice_activity: Option<VoiceActivity>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.setup_complete: Option<BidiGenerateContentSetupComplete>§server_content: Option<BidiGenerateContentServerContent>§tool_call: Option<BidiGenerateContentToolCall>§tool_call_cancellation: Option<BidiGenerateContentToolCallCancellation>§go_away: Option<GoAway>§session_resumption_update: Option<SessionResumptionUpdate>§usage_metadata: Option<LiveUsageMetadata>§voice_activity_detection_signal: Option<VoiceActivityDetectionSignal>§voice_activity: Option<VoiceActivity>§rest: RestImplementations§
Source§impl LiveServerMessage
impl LiveServerMessage
Sourcepub fn builder() -> LiveServerMessageBuilder
pub fn builder() -> LiveServerMessageBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for LiveServerMessage
impl Clone for LiveServerMessage
Source§impl Debug for LiveServerMessage
impl Debug for LiveServerMessage
Source§impl DeclaredFields for LiveServerMessage
impl DeclaredFields for LiveServerMessage
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for LiveServerMessage
impl<'de> Deserialize<'de> for LiveServerMessage
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
Source§impl PartialEq for LiveServerMessage
impl PartialEq for LiveServerMessage
Source§impl Serialize for LiveServerMessage
impl Serialize for LiveServerMessage
impl StructuralPartialEq for LiveServerMessage
Auto Trait Implementations§
impl Freeze for LiveServerMessage
impl RefUnwindSafe for LiveServerMessage
impl Send for LiveServerMessage
impl Sync for LiveServerMessage
impl Unpin for LiveServerMessage
impl UnsafeUnpin for LiveServerMessage
impl UnwindSafe for LiveServerMessage
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