pub struct TranslateTextRequest {Show 13 fields
pub text: Vec<String>,
pub target_lang: Lang,
pub tag_handling: Option<TagHandling>,
pub source_lang: Option<Lang>,
pub context: Option<String>,
pub preserve_formatting: Option<bool>,
pub glossary_id: Option<String>,
pub outline_detection: Option<bool>,
pub non_splitting_tags: Option<Vec<String>>,
pub splitting_tags: Option<Vec<String>>,
pub ignore_tags: Option<Vec<String>>,
pub formality: Option<Formality>,
pub split_sentences: Option<SplitSentences>,
}Expand description
Request to translate text.
Fields§
§text: Vec<String>Text to translate.
target_lang: LangTarget language.
tag_handling: Option<TagHandling>Tag handling.
source_lang: Option<Lang>Source language.
context: Option<String>Context string.
preserve_formatting: Option<bool>Preserve formatting.
glossary_id: Option<String>Glossary identifier.
outline_detection: Option<bool>Outline detection.
Non splitting tags.
Splitting tags.
Ignore tags.
formality: Option<Formality>Formality.
split_sentences: Option<SplitSentences>Split sentences.
Implementations§
Trait Implementations§
Source§impl Debug for TranslateTextRequest
impl Debug for TranslateTextRequest
Source§impl<'de> Deserialize<'de> for TranslateTextRequest
impl<'de> Deserialize<'de> for TranslateTextRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TranslateTextRequest
impl RefUnwindSafe for TranslateTextRequest
impl Send for TranslateTextRequest
impl Sync for TranslateTextRequest
impl Unpin for TranslateTextRequest
impl UnwindSafe for TranslateTextRequest
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