pub enum CellText {
Plain(String),
Key {
key: String,
text: String,
args: Map<String, Value>,
},
}Expand description
A cell’s words a record gives: plain text, or a string key with its
English and its { $name } arguments, translated where it is shown.
"Offline since Monday"
{ "key": "storage-node-offline", "text": "Offline since { $since }", "args": { "since": "Monday" } }Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellText
impl<'de> Deserialize<'de> for CellText
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
impl StructuralPartialEq for CellText
Auto Trait Implementations§
impl Freeze for CellText
impl RefUnwindSafe for CellText
impl Send for CellText
impl Sync for CellText
impl Unpin for CellText
impl UnsafeUnpin for CellText
impl UnwindSafe for CellText
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