pub struct Translation {
pub translated_text: String,
pub translation_lang: String,
pub source_lang: String,
}Expand description
Parsed translation metadata for a message.
Fields§
§translated_text: StringTranslated text.
translation_lang: StringTarget language identifier.
source_lang: StringSource language identifier.
Implementations§
Source§impl Translation
impl Translation
Sourcepub fn from_payload(plist: &Value) -> Result<Self, PlistParseError>
pub fn from_payload(plist: &Value) -> Result<Self, PlistParseError>
Parse translation metadata from a message_summary_info payload.
Trait Implementations§
Source§impl Debug for Translation
impl Debug for Translation
impl Eq for Translation
Source§impl PartialEq for Translation
impl PartialEq for Translation
Source§fn eq(&self, other: &Translation) -> bool
fn eq(&self, other: &Translation) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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.