#[non_exhaustive]pub struct LiveSessionCreateRequest {
pub model: Option<String>,
pub instructions: Option<String>,
pub audio: Option<RealtimeAudioConfig>,
pub delegation: Option<LiveDelegation>,
pub initial_items: Option<Vec<LiveInitialMessage>>,
pub rest: Rest,
}Expand description
Frameless WebRTC setup at POST /v1/live. Unlike Realtime, this session
has no required type: realtime. Source: samples/codex/codex-rs/codex-api/
src/endpoint/realtime_websocket/methods_frameless_bidi.rs::session_json.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: Option<String>§instructions: Option<String>§audio: Option<RealtimeAudioConfig>§delegation: Option<LiveDelegation>§initial_items: Option<Vec<LiveInitialMessage>>§rest: RestImplementations§
Source§impl LiveSessionCreateRequest
impl LiveSessionCreateRequest
Sourcepub fn builder() -> LiveSessionCreateRequestBuilder
pub fn builder() -> LiveSessionCreateRequestBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for LiveSessionCreateRequest
impl Clone for LiveSessionCreateRequest
Source§impl Debug for LiveSessionCreateRequest
impl Debug for LiveSessionCreateRequest
Source§impl DeclaredFields for LiveSessionCreateRequest
impl DeclaredFields for LiveSessionCreateRequest
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for LiveSessionCreateRequest
impl<'de> Deserialize<'de> for LiveSessionCreateRequest
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 PartialEq for LiveSessionCreateRequest
impl PartialEq for LiveSessionCreateRequest
Source§impl Serialize for LiveSessionCreateRequest
impl Serialize for LiveSessionCreateRequest
impl StructuralPartialEq for LiveSessionCreateRequest
Auto Trait Implementations§
impl Freeze for LiveSessionCreateRequest
impl RefUnwindSafe for LiveSessionCreateRequest
impl Send for LiveSessionCreateRequest
impl Sync for LiveSessionCreateRequest
impl Unpin for LiveSessionCreateRequest
impl UnsafeUnpin for LiveSessionCreateRequest
impl UnwindSafe for LiveSessionCreateRequest
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