pub struct RealtimeTranslationClientEventSessionClose {
pub event_id: Option<String>,
}Expand description
Gracefully close the realtime translation session. The server flushes pending input audio and emits any remaining translated output before closing the session.
Fields§
§event_id: Option<String>Optional client-generated ID used to identify this event.
Trait Implementations§
Source§impl Clone for RealtimeTranslationClientEventSessionClose
impl Clone for RealtimeTranslationClientEventSessionClose
Source§fn clone(&self) -> RealtimeTranslationClientEventSessionClose
fn clone(&self) -> RealtimeTranslationClientEventSessionClose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for RealtimeTranslationClientEventSessionClose
impl<'de> Deserialize<'de> for RealtimeTranslationClientEventSessionClose
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RealtimeTranslationClientEventSessionClose, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RealtimeTranslationClientEventSessionClose, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RealtimeTranslationClientEventSessionClose
impl Serialize for RealtimeTranslationClientEventSessionClose
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RealtimeTranslationClientEventSessionClose
impl RefUnwindSafe for RealtimeTranslationClientEventSessionClose
impl Send for RealtimeTranslationClientEventSessionClose
impl Sync for RealtimeTranslationClientEventSessionClose
impl Unpin for RealtimeTranslationClientEventSessionClose
impl UnsafeUnpin for RealtimeTranslationClientEventSessionClose
impl UnwindSafe for RealtimeTranslationClientEventSessionClose
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