pub struct RealtimeTranslationClientEventSessionUpdate {
pub event_id: Option<String>,
pub session: RealtimeTranslationSessionUpdateRequest,
}Available on crate feature
realtime-types only.Expand description
Send this event to update the translation session configuration.
Translation sessions support updates to audio.output.language,
audio.input.transcription, and audio.input.noise_reduction.
Fields§
§event_id: Option<String>Optional client-generated ID used to identify this event.
session: RealtimeTranslationSessionUpdateRequestTranslation session fields to update. The session type and model are set
at creation and cannot be changed with session.update.
Trait Implementations§
Source§impl Clone for RealtimeTranslationClientEventSessionUpdate
impl Clone for RealtimeTranslationClientEventSessionUpdate
Source§fn clone(&self) -> RealtimeTranslationClientEventSessionUpdate
fn clone(&self) -> RealtimeTranslationClientEventSessionUpdate
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 RealtimeTranslationClientEventSessionUpdate
impl<'de> Deserialize<'de> for RealtimeTranslationClientEventSessionUpdate
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 RealtimeTranslationClientEventSessionUpdate
impl RefUnwindSafe for RealtimeTranslationClientEventSessionUpdate
impl Send for RealtimeTranslationClientEventSessionUpdate
impl Sync for RealtimeTranslationClientEventSessionUpdate
impl Unpin for RealtimeTranslationClientEventSessionUpdate
impl UnsafeUnpin for RealtimeTranslationClientEventSessionUpdate
impl UnwindSafe for RealtimeTranslationClientEventSessionUpdate
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