pub struct CreateRealtimeSessionRequest {
pub session: Option<Value>,
pub extra_body: Option<Map<String, Value>>,
}Expand description
Creates a Realtime session via POST /realtime/sessions.
The session field carries the full session configuration as raw
JSON (modalities, model, voice, instructions, tools,
turn_detection, …), matching the official API’s nested shape.
Fields§
§session: Option<Value>The session configuration, as raw JSON. Use {"model": ...} at
minimum; all other fields are optional server-side.
extra_body: Option<Map<String, Value>>Additional JSON properties flattened into the request body, for fields not covered by the typed struct.
Trait Implementations§
Source§impl Clone for CreateRealtimeSessionRequest
impl Clone for CreateRealtimeSessionRequest
Source§fn clone(&self) -> CreateRealtimeSessionRequest
fn clone(&self) -> CreateRealtimeSessionRequest
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 Debug for CreateRealtimeSessionRequest
impl Debug for CreateRealtimeSessionRequest
Source§impl Post for CreateRealtimeSessionRequest
impl Post for CreateRealtimeSessionRequest
Source§impl PostNoStream for CreateRealtimeSessionRequest
impl PostNoStream for CreateRealtimeSessionRequest
Auto Trait Implementations§
impl Freeze for CreateRealtimeSessionRequest
impl RefUnwindSafe for CreateRealtimeSessionRequest
impl Send for CreateRealtimeSessionRequest
impl Sync for CreateRealtimeSessionRequest
impl Unpin for CreateRealtimeSessionRequest
impl UnsafeUnpin for CreateRealtimeSessionRequest
impl UnwindSafe for CreateRealtimeSessionRequest
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