pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
Sourcepub fn translate(&self) -> TranslateBuilder<'_>
pub fn translate(&self) -> TranslateBuilder<'_>
机器翻译-通用版和专业版
注意事项:
- QPS限制50
- 字符长度有上限,且需要自己检查长度
Sourcepub fn get_detect_language(&self) -> GetDetectLanguageBuilder<'_>
pub fn get_detect_language(&self) -> GetDetectLanguageBuilder<'_>
注意:使用翻译的不同的api,需要在控制台开启相应的服务
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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