pub struct TranslationKeyUpdate {
pub key: String,
pub module: String,
pub extra: Map<String, Value>,
}Expand description
Rename or move a locally created translation key to a module. Both fields are required; translation texts are unchanged.
Fields§
§key: StringTranslation key, trimmed before validation.
module: StringModule grouping, trimmed before validation. This value is stored as text rather than checked against a fixed module enum.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for TranslationKeyUpdate
impl Clone for TranslationKeyUpdate
Source§impl Debug for TranslationKeyUpdate
impl Debug for TranslationKeyUpdate
Source§impl Default for TranslationKeyUpdate
impl Default for TranslationKeyUpdate
Source§impl<'de> Deserialize<'de> for TranslationKeyUpdate
impl<'de> Deserialize<'de> for TranslationKeyUpdate
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 TranslationKeyUpdate
impl PartialEq for TranslationKeyUpdate
Source§impl Serialize for TranslationKeyUpdate
impl Serialize for TranslationKeyUpdate
impl StructuralPartialEq for TranslationKeyUpdate
Auto Trait Implementations§
impl Freeze for TranslationKeyUpdate
impl RefUnwindSafe for TranslationKeyUpdate
impl Send for TranslationKeyUpdate
impl Sync for TranslationKeyUpdate
impl Unpin for TranslationKeyUpdate
impl UnsafeUnpin for TranslationKeyUpdate
impl UnwindSafe for TranslationKeyUpdate
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