pub struct Translation {
pub deleted: bool,
pub needs_check: bool,
pub translation: String,
pub updated: Option<DateTime<Utc>>,
pub updated_by_church: bool,
pub extra: Map<String, Value>,
}Expand description
Text and maintenance flags for one language of a translation key. The enclosing map identifies the language code.
Fields§
§deleted: boolWhether this language entry is marked deleted.
needs_check: boolWhether this translation needs review.
translation: StringThe translation value for the key
updated: Option<DateTime<Utc>>Last updated
updated_by_church: boolDetermines if the translation was updated or created by the church
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for Translation
impl Clone for Translation
Source§impl Debug for Translation
impl Debug for Translation
Source§impl Default for Translation
impl Default 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
Source§impl PartialEq for Translation
impl PartialEq for Translation
Source§impl Serialize for Translation
impl Serialize 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 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