[][src]Struct deepl_api::TranslationOptions

pub struct TranslationOptions {
    pub split_sentences: Option<SplitSentences>,
    pub preserve_formatting: Option<bool>,
    pub formality: Option<Formality>,
}

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.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.