pub struct EntryObject {
pub kind: Option<Kind>,
pub value: Value,
pub comment: Option<String>,
pub key: Option<String>,
pub event: Option<String>,
pub subtitle: Option<String>,
}Expand description
An entry’s object form: { "type": ..., "value": ..., "comment": ..., ... }.
Fields§
§kind: Option<Kind>What the entry is; by default what its value is (string, number, bool).
value: ValueThe text, path, color, number or flag.
comment: Option<String>A note for whoever edits the file — never shipped.
key: Option<String>Texts: the translation key instead of the default one.
event: Option<String>Sounds: the sound event name.
subtitle: Option<String>Sounds: the subtitle’s translation key.
Trait Implementations§
Source§impl Schema for EntryObject
impl Schema for EntryObject
Auto Trait Implementations§
impl Freeze for EntryObject
impl RefUnwindSafe for EntryObject
impl Send for EntryObject
impl Sync for EntryObject
impl Unpin for EntryObject
impl UnsafeUnpin for EntryObject
impl UnwindSafe for EntryObject
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