#[non_exhaustive]pub struct CreateRealtimeTranslationSessionRequest {
pub model: String,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Translation session config for POST /v1/realtime/translations/client_secrets.
中文:POST /v1/realtime/translations/client_secrets 的 translation session 配置。
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 translation model used for the session. 中文:此 session 使用的 realtime translation 模型。
extra: BTreeMap<String, Value>EN: Forward-compatible translation session fields. 中文:前向兼容的 translation session 字段。
Implementations§
Source§impl CreateRealtimeTranslationSessionRequest
impl CreateRealtimeTranslationSessionRequest
Sourcepub fn builder() -> CreateRealtimeTranslationSessionRequestBuilder
pub fn builder() -> CreateRealtimeTranslationSessionRequestBuilder
EN: Starts building a realtime translation session request. 中文:开始构建 realtime translation session 请求。
Trait Implementations§
Source§impl Clone for CreateRealtimeTranslationSessionRequest
impl Clone for CreateRealtimeTranslationSessionRequest
Source§fn clone(&self) -> CreateRealtimeTranslationSessionRequest
fn clone(&self) -> CreateRealtimeTranslationSessionRequest
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 PartialEq for CreateRealtimeTranslationSessionRequest
impl PartialEq for CreateRealtimeTranslationSessionRequest
Source§fn eq(&self, other: &CreateRealtimeTranslationSessionRequest) -> bool
fn eq(&self, other: &CreateRealtimeTranslationSessionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateRealtimeTranslationSessionRequest
Auto Trait Implementations§
impl Freeze for CreateRealtimeTranslationSessionRequest
impl RefUnwindSafe for CreateRealtimeTranslationSessionRequest
impl Send for CreateRealtimeTranslationSessionRequest
impl Sync for CreateRealtimeTranslationSessionRequest
impl Unpin for CreateRealtimeTranslationSessionRequest
impl UnsafeUnpin for CreateRealtimeTranslationSessionRequest
impl UnwindSafe for CreateRealtimeTranslationSessionRequest
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