#[non_exhaustive]pub struct RealtimeSessionConfig {
pub kind: String,
pub model: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Forward-compatible realtime session configuration. 中文:前向兼容的 realtime 会话配置。
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.kind: StringEN: Session kind, for example realtime or transcription.
中文:会话类型,例如 realtime 或 transcription。
model: Option<String>EN: Optional realtime model. 中文:可选的 realtime 模型。
extra: BTreeMap<String, Value>EN: Forward-compatible optional fields not yet covered by handwritten types. 中文:手写类型尚未覆盖的前向兼容可选字段。
Implementations§
Source§impl RealtimeSessionConfig
impl RealtimeSessionConfig
Sourcepub fn builder(kind: impl Into<String>) -> RealtimeSessionConfigBuilder
pub fn builder(kind: impl Into<String>) -> RealtimeSessionConfigBuilder
EN: Starts building a session config with the documented session type. 中文:使用文档中的会话类型开始构建会话配置。
Trait Implementations§
Source§impl Clone for RealtimeSessionConfig
impl Clone for RealtimeSessionConfig
Source§fn clone(&self) -> RealtimeSessionConfig
fn clone(&self) -> RealtimeSessionConfig
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 RealtimeSessionConfig
impl Debug for RealtimeSessionConfig
Source§impl PartialEq for RealtimeSessionConfig
impl PartialEq for RealtimeSessionConfig
Source§fn eq(&self, other: &RealtimeSessionConfig) -> bool
fn eq(&self, other: &RealtimeSessionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RealtimeSessionConfig
impl Serialize for RealtimeSessionConfig
impl StructuralPartialEq for RealtimeSessionConfig
Auto Trait Implementations§
impl Freeze for RealtimeSessionConfig
impl RefUnwindSafe for RealtimeSessionConfig
impl Send for RealtimeSessionConfig
impl Sync for RealtimeSessionConfig
impl Unpin for RealtimeSessionConfig
impl UnsafeUnpin for RealtimeSessionConfig
impl UnwindSafe for RealtimeSessionConfig
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