pub struct RealtimeTranslationServerEventSessionCreated {
pub event_id: String,
pub session: RealtimeTranslationSession,
}Available on crate feature
realtime-types only.Expand description
Returned when a translation session is created. Emitted automatically when a new connection is established as the first server event. This event contains the default translation session configuration.
Fields§
§event_id: StringThe unique ID of the server event.
session: RealtimeTranslationSessionThe translation session configuration.
Trait Implementations§
Source§impl Clone for RealtimeTranslationServerEventSessionCreated
impl Clone for RealtimeTranslationServerEventSessionCreated
Source§fn clone(&self) -> RealtimeTranslationServerEventSessionCreated
fn clone(&self) -> RealtimeTranslationServerEventSessionCreated
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 RealtimeTranslationServerEventSessionCreated
impl<'de> Deserialize<'de> for RealtimeTranslationServerEventSessionCreated
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 RealtimeTranslationServerEventSessionCreated
impl RefUnwindSafe for RealtimeTranslationServerEventSessionCreated
impl Send for RealtimeTranslationServerEventSessionCreated
impl Sync for RealtimeTranslationServerEventSessionCreated
impl Unpin for RealtimeTranslationServerEventSessionCreated
impl UnsafeUnpin for RealtimeTranslationServerEventSessionCreated
impl UnwindSafe for RealtimeTranslationServerEventSessionCreated
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