Struct deeprl::TextOptions
source · pub struct TextOptions { /* private fields */ }
Expand description
Options for Text
translation
Implementations§
source§impl TextOptions
impl TextOptions
sourcepub fn source_lang(self, source_lang: Language) -> Self
pub fn source_lang(self, source_lang: Language) -> Self
Setter for source_lang
sourcepub fn split_sentences(self, split_sentences: SplitSentences) -> Self
pub fn split_sentences(self, split_sentences: SplitSentences) -> Self
Setter for split_sentences
sourcepub fn preserve_formatting(self, preserve_formatting: bool) -> Self
pub fn preserve_formatting(self, preserve_formatting: bool) -> Self
Setter for preserve_formatting
sourcepub fn glossary_id(self, glossary_id: String) -> Self
pub fn glossary_id(self, glossary_id: String) -> Self
Setter for glossary_id
sourcepub fn tag_handling(self, tag_handling: TagHandling) -> Self
pub fn tag_handling(self, tag_handling: TagHandling) -> Self
Setter for tag_handling
Setter for non_splitting_tags
sourcepub fn outline_detection(self, outline_detection: bool) -> Self
pub fn outline_detection(self, outline_detection: bool) -> Self
Setter for outline_detection
Setter for splitting_tags
Setter for ignore_tags
Auto Trait Implementations§
impl Freeze for TextOptions
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnwindSafe for TextOptions
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