pub struct SessionCreateResponse {Show 13 fields
pub client_secret: ClientSecret,
pub model: Option<String>,
pub voice: Option<String>,
pub instructions: Option<String>,
pub modalities: Option<Vec<String>>,
pub temperature: Option<f64>,
pub max_response_output_tokens: Option<MaxResponseTokens>,
pub input_audio_format: Option<RealtimeAudioFormat>,
pub output_audio_format: Option<RealtimeAudioFormat>,
pub tools: Option<Vec<RealtimeTool>>,
pub tool_choice: Option<String>,
pub turn_detection: Option<TurnDetection>,
pub speed: Option<f64>,
}Expand description
Response from POST /realtime/sessions.
Fields§
§client_secret: ClientSecretEphemeral client secret for client-side authentication.
model: Option<String>§voice: Option<String>§instructions: Option<String>§modalities: Option<Vec<String>>§temperature: Option<f64>§max_response_output_tokens: Option<MaxResponseTokens>§input_audio_format: Option<RealtimeAudioFormat>§output_audio_format: Option<RealtimeAudioFormat>§tools: Option<Vec<RealtimeTool>>§tool_choice: Option<String>§turn_detection: Option<TurnDetection>§speed: Option<f64>Trait Implementations§
Source§impl Clone for SessionCreateResponse
impl Clone for SessionCreateResponse
Source§fn clone(&self) -> SessionCreateResponse
fn clone(&self) -> SessionCreateResponse
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 SessionCreateResponse
impl Debug for SessionCreateResponse
Source§impl<'de> Deserialize<'de> for SessionCreateResponse
impl<'de> Deserialize<'de> for SessionCreateResponse
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 SessionCreateResponse
impl RefUnwindSafe for SessionCreateResponse
impl Send for SessionCreateResponse
impl Sync for SessionCreateResponse
impl Unpin for SessionCreateResponse
impl UnsafeUnpin for SessionCreateResponse
impl UnwindSafe for SessionCreateResponse
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