pub struct RealtimeSession {
pub ephemeral_token: String,
pub url: String,
pub signed_url: String,
pub session_id: String,
pub provider: String,
}Expand description
Response from the QAI realtime session endpoint.
Fields§
§ephemeral_token: StringEphemeral token for direct WebSocket connection (xAI/OpenAI).
url: StringWebSocket URL to connect to. For xAI: “wss://api.x.ai/v1/realtime” For ElevenLabs: the signed WebSocket URL (includes auth in URL).
signed_url: StringSigned URL (alias for url — ElevenLabs returns this field name).
session_id: StringSession ID for billing (pass to realtime/end on disconnect).
provider: StringProvider name (e.g. “elevenlabs”, “xai”).
Implementations§
Trait Implementations§
Source§impl Clone for RealtimeSession
impl Clone for RealtimeSession
Source§fn clone(&self) -> RealtimeSession
fn clone(&self) -> RealtimeSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealtimeSession
impl Debug for RealtimeSession
Source§impl<'de> Deserialize<'de> for RealtimeSession
impl<'de> Deserialize<'de> for RealtimeSession
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 RealtimeSession
impl RefUnwindSafe for RealtimeSession
impl Send for RealtimeSession
impl Sync for RealtimeSession
impl Unpin for RealtimeSession
impl UnsafeUnpin for RealtimeSession
impl UnwindSafe for RealtimeSession
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