pub struct TranslateService<'a> { /* private fields */ }Implementations§
Source§impl<'a> TranslateService<'a>
impl<'a> TranslateService<'a>
Sourcepub async fn get_ai_translate_languages(&self) -> Result<Value>
pub async fn get_ai_translate_languages(&self) -> Result<Value>
获取AI翻译支持的语言和配置
Sourcepub async fn post_ai_translate(
&self,
params: PostAiTranslateParams,
) -> Result<Value>
pub async fn post_ai_translate( &self, params: PostAiTranslateParams, ) -> Result<Value>
AI智能翻译
Sourcepub async fn post_translate_stream(
&self,
params: PostTranslateStreamParams,
) -> Result<Value>
pub async fn post_translate_stream( &self, params: PostTranslateStreamParams, ) -> Result<Value>
流式翻译(中英互译)
Sourcepub async fn post_translate_text(
&self,
params: PostTranslateTextParams,
) -> Result<Value>
pub async fn post_translate_text( &self, params: PostTranslateTextParams, ) -> Result<Value>
多语言文本翻译
Trait Implementations§
Source§impl<'a> Clone for TranslateService<'a>
impl<'a> Clone for TranslateService<'a>
Source§fn clone(&self) -> TranslateService<'a>
fn clone(&self) -> TranslateService<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for TranslateService<'a>
impl<'a> !RefUnwindSafe for TranslateService<'a>
impl<'a> Send for TranslateService<'a>
impl<'a> Sync for TranslateService<'a>
impl<'a> Unpin for TranslateService<'a>
impl<'a> !UnwindSafe for TranslateService<'a>
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