pub struct TranslateTextResponse {
pub glossary_translations: Option<Vec<Translation>>,
pub translations: Option<Vec<Translation>>,
}Expand description
There is no detailed description.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations translate text projects (response)
- translate text projects (response)
Fields§
§glossary_translations: Option<Vec<Translation>>Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents.
translations: Option<Vec<Translation>>Text translation responses with no glossary applied. This field has the same length as contents.
Trait Implementations§
Source§impl Clone for TranslateTextResponse
impl Clone for TranslateTextResponse
Source§fn clone(&self) -> TranslateTextResponse
fn clone(&self) -> TranslateTextResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranslateTextResponse
impl Debug for TranslateTextResponse
Source§impl Default for TranslateTextResponse
impl Default for TranslateTextResponse
Source§fn default() -> TranslateTextResponse
fn default() -> TranslateTextResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TranslateTextResponse
impl<'de> Deserialize<'de> for TranslateTextResponse
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
Source§impl Serialize for TranslateTextResponse
impl Serialize for TranslateTextResponse
impl ResponseResult for TranslateTextResponse
Auto Trait Implementations§
impl Freeze for TranslateTextResponse
impl RefUnwindSafe for TranslateTextResponse
impl Send for TranslateTextResponse
impl Sync for TranslateTextResponse
impl Unpin for TranslateTextResponse
impl UnwindSafe for TranslateTextResponse
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