pub struct RealtimeTranslationClientEventSessionClose {
pub event_id: Option<String>,
}Available on crate feature
realtime-types only.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<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 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