pub struct CreateRealtimeSessionRequest {
pub session: Option<Value>,
pub extra_body_map: 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_map: 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§impl Debug for CreateRealtimeSessionRequest
impl Debug for CreateRealtimeSessionRequest
Source§impl<'de> Deserialize<'de> for CreateRealtimeSessionRequest
impl<'de> Deserialize<'de> for CreateRealtimeSessionRequest
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
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