pub struct ExtBuilder { /* private fields */ }Expand description
Builder for Ext.
Implementations§
Source§impl ExtBuilder
impl ExtBuilder
Sourcepub fn domain_hint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn domain_hint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
领域提示,为使译文风格更贴合特定领域,可以使用英文描述使用场景、译文风格等需求。 为确保翻译效果,建议不超过200个英文单词。
Sourcepub fn sensitives<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn sensitives<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
配置敏感词,以在翻译前过滤图片中完全匹配的文本,对大小写敏感。 敏感词的语种可与源语种不一致,支持全部的源语种和目标语种。为确保翻译效果,建议单次请求添加的敏感词不超过50个。
示例:[“全场9折”, “七天无理由退换”]
Sourcepub fn terminologies<VALUE: Into<Vec<Terminology>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn terminologies<VALUE: Into<Vec<Terminology>>>( &mut self, value: VALUE, ) -> &mut Self
术语干预,为特定术语设定译文,以满足特定领域的翻译需求,术语对的语种需要与source_lang和target_lang对应。
pub fn config<VALUE: Into<Config>>(&mut self, value: VALUE) -> &mut Self
Trait Implementations§
Source§impl Clone for ExtBuilder
impl Clone for ExtBuilder
Source§fn clone(&self) -> ExtBuilder
fn clone(&self) -> ExtBuilder
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 Freeze for ExtBuilder
impl RefUnwindSafe for ExtBuilder
impl Send for ExtBuilder
impl Sync for ExtBuilder
impl Unpin for ExtBuilder
impl UnwindSafe for ExtBuilder
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