#[non_exhaustive]pub struct CreateRealtimeSessionRequest {
pub model: String,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Request body for POST /v1/realtime/sessions.
中文:POST /v1/realtime/sessions 的请求体。
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: StringEN: Realtime model used for the session. 中文:此会话使用的 realtime 模型。
extra: BTreeMap<String, Value>EN: Forward-compatible optional session fields. 中文:前向兼容的可选会话字段。
Implementations§
Source§impl CreateRealtimeSessionRequest
impl CreateRealtimeSessionRequest
Sourcepub fn builder() -> CreateRealtimeSessionRequestBuilder
pub fn builder() -> CreateRealtimeSessionRequestBuilder
EN: Starts building a realtime session request. 中文:开始构建 realtime session 请求。
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 PartialEq for CreateRealtimeSessionRequest
impl PartialEq for CreateRealtimeSessionRequest
Source§fn eq(&self, other: &CreateRealtimeSessionRequest) -> bool
fn eq(&self, other: &CreateRealtimeSessionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq 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