pub struct Translation {
pub translated_text: String,
pub translation_lang: String,
pub source_lang: String,
}
Expand description
A translated message
Fields§
§translated_text: String
The translated text
translation_lang: String
The language the text was translated to
source_lang: String
The language the text was translated from
Implementations§
Source§impl Translation
impl Translation
Sourcepub fn from_payload(plist: &Value) -> Result<Self, PlistParseError>
pub fn from_payload(plist: &Value) -> Result<Self, PlistParseError>
Generates a Translation
from a message_summary_info
payload
Trait Implementations§
Source§impl Debug for Translation
impl Debug for Translation
Source§impl PartialEq for Translation
impl PartialEq for Translation
impl Eq for Translation
impl StructuralPartialEq for Translation
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.