#[non_exhaustive]pub struct CreateRealtimeTranslationSessionRequestBuilder { /* private fields */ }Expand description
EN: Builder for realtime translation session configs. 中文:realtime translation session 配置的构建器。
Implementations§
Source§impl CreateRealtimeTranslationSessionRequestBuilder
impl CreateRealtimeTranslationSessionRequestBuilder
Sourcepub fn model(self, model: impl Into<String>) -> Self
pub fn model(self, model: impl Into<String>) -> Self
EN: Sets the realtime translation model. 中文:设置 realtime translation 模型。
Sourcepub fn extra(self, name: impl Into<String>, value: Value) -> Self
pub fn extra(self, name: impl Into<String>, value: Value) -> Self
EN: Adds a forward-compatible JSON field. 中文:添加一个前向兼容 JSON 字段。
Sourcepub fn build(
self,
) -> Result<CreateRealtimeTranslationSessionRequest, LingerError>
pub fn build( self, ) -> Result<CreateRealtimeTranslationSessionRequest, LingerError>
EN: Builds and validates the request. 中文:构建并校验请求。
Trait Implementations§
Source§impl Clone for CreateRealtimeTranslationSessionRequestBuilder
impl Clone for CreateRealtimeTranslationSessionRequestBuilder
Source§fn clone(&self) -> CreateRealtimeTranslationSessionRequestBuilder
fn clone(&self) -> CreateRealtimeTranslationSessionRequestBuilder
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 Default for CreateRealtimeTranslationSessionRequestBuilder
impl Default for CreateRealtimeTranslationSessionRequestBuilder
Source§fn default() -> CreateRealtimeTranslationSessionRequestBuilder
fn default() -> CreateRealtimeTranslationSessionRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateRealtimeTranslationSessionRequestBuilder
impl RefUnwindSafe for CreateRealtimeTranslationSessionRequestBuilder
impl Send for CreateRealtimeTranslationSessionRequestBuilder
impl Sync for CreateRealtimeTranslationSessionRequestBuilder
impl Unpin for CreateRealtimeTranslationSessionRequestBuilder
impl UnsafeUnpin for CreateRealtimeTranslationSessionRequestBuilder
impl UnwindSafe for CreateRealtimeTranslationSessionRequestBuilder
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