pub struct DocumentTranslation {
pub byte_stream_outputs: Option<Vec<Vec<u8>>>,
pub detected_language_code: Option<String>,
pub mime_type: Option<String>,
}Expand description
A translated document message.
This type is not used in any activity, and only used as part of another schema.
Fields§
§byte_stream_outputs: Option<Vec<Vec<u8>>>The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
detected_language_code: Option<String>The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.
mime_type: Option<String>The translated document’s mime type.
Trait Implementations§
Source§impl Clone for DocumentTranslation
impl Clone for DocumentTranslation
Source§fn clone(&self) -> DocumentTranslation
fn clone(&self) -> DocumentTranslation
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 DocumentTranslation
impl Debug for DocumentTranslation
Source§impl Default for DocumentTranslation
impl Default for DocumentTranslation
Source§fn default() -> DocumentTranslation
fn default() -> DocumentTranslation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentTranslation
impl<'de> Deserialize<'de> for DocumentTranslation
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 DocumentTranslation
impl Serialize for DocumentTranslation
impl Part for DocumentTranslation
Auto Trait Implementations§
impl Freeze for DocumentTranslation
impl RefUnwindSafe for DocumentTranslation
impl Send for DocumentTranslation
impl Sync for DocumentTranslation
impl Unpin for DocumentTranslation
impl UnwindSafe for DocumentTranslation
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