pub struct TranslationKey {
pub created_by_church: bool,
pub deleted: bool,
pub id: i64,
pub key: String,
pub module: String,
pub translations: Value,
pub updated: Option<DateTime<Utc>>,
pub extra: Map<String, Value>,
}Expand description
Translation identifier and its texts by language code. Local keys are marked createdByChurch; supplied product keys cannot be renamed or deleted through these endpoints.
Fields§
§created_by_church: boolWhether the key was created locally by this installation.
deleted: boolWhether the key is marked deleted.
id: i64§key: String§module: String§translations: ValueTranslations keyed by language code, for example de or en. An empty collection serializes as [].
updated: Option<DateTime<Utc>>Last updated
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for TranslationKey
impl Clone for TranslationKey
Source§impl Debug for TranslationKey
impl Debug for TranslationKey
Source§impl Default for TranslationKey
impl Default for TranslationKey
Source§impl<'de> Deserialize<'de> for TranslationKey
impl<'de> Deserialize<'de> for TranslationKey
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 TranslationKey
impl PartialEq for TranslationKey
Source§impl Serialize for TranslationKey
impl Serialize for TranslationKey
impl StructuralPartialEq for TranslationKey
Auto Trait Implementations§
impl Freeze for TranslationKey
impl RefUnwindSafe for TranslationKey
impl Send for TranslationKey
impl Sync for TranslationKey
impl Unpin for TranslationKey
impl UnsafeUnpin for TranslationKey
impl UnwindSafe for TranslationKey
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