translate_text

Function translate_text 

Source
pub async fn translate_text(
    configuration: &Configuration,
    text: Vec<String>,
    target_lang: TargetLanguage,
    source_lang: Option<SourceLanguage>,
    split_sentences: Option<&str>,
    preserve_formatting: Option<&str>,
    formality: Option<Formality>,
    glossary_id: Option<&str>,
    tag_handling: Option<&str>,
    non_splitting_tags: Option<&str>,
    outline_detection: Option<&str>,
    splitting_tags: Option<&str>,
    ignore_tags: Option<&str>,
) -> Result<TranslateText200Response, Error<TranslateTextError>>
Expand description

The translate function. The total request body size must not exceed 128 KiB (128 · 1024 bytes). Please split up your text into multiple calls if it exceeds this limit.