openai_struct/models/realtime_session_create_response_client_secret.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub RealtimeSessionCreateResponseClientSecret : Ephemeral key returned by the API.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RealtimeSessionCreateResponseClientSecret {
18 /// Timestamp for when the token expires. Currently, all tokens expire after one minute.
19 #[serde(rename = "expires_at")]
20 pub expires_at: i32,
21 /// Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.
22 #[serde(rename = "value")]
23 pub value: String,
24}