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.
Trait Implementations
sourceimpl Clone for TranslationOptions
impl Clone for TranslationOptions
sourcefn clone(&self) -> TranslationOptions
fn clone(&self) -> TranslationOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for TranslationOptions
impl Send for TranslationOptions
impl Sync for TranslationOptions
impl Unpin for TranslationOptions
impl UnwindSafe for TranslationOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more