Struct deepl_api::TranslationOptions
source · 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.