pub struct TranslationOptions {
pub split_sentences: Option<SplitSentences>,
pub preserve_formatting: Option<bool>,
pub formality: Option<Formality>,
pub glossary_id: Option<String>,
}
Expand description
Fields§
§split_sentences: Option<SplitSentences>
Sets whether the translation engine should first split the input into sentences. This is enabled by default.
preserve_formatting: Option<bool>
Sets whether the translation engine should respect the original formatting, even if it would usually correct some aspects.
formality: Option<Formality>
Sets whether the translated text should lean towards formal or informal language.
glossary_id: Option<String>
Specify the glossary to use for the translation.
Trait Implementations§
Source§impl Clone for TranslationOptions
impl Clone for TranslationOptions
Source§fn clone(&self) -> TranslationOptions
fn clone(&self) -> TranslationOptions
Returns a copy 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 TranslationOptions
impl RefUnwindSafe for TranslationOptions
impl Send for TranslationOptions
impl Sync for TranslationOptions
impl Unpin for TranslationOptions
impl UnwindSafe for TranslationOptions
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