Struct deeprl::Translation
source · pub struct Translation {
pub detected_source_language: String,
pub text: String,
}
Expand description
An individual translation
Fields§
§detected_source_language: String
Detected source language
text: String
Translated text
Trait Implementations§
source§impl Debug for Translation
impl Debug for Translation
source§impl<'de> Deserialize<'de> for Translation
impl<'de> Deserialize<'de> for Translation
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 Translation
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnwindSafe for Translation
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