pub enum Cell {
Text {
value: String,
},
Number {
value: i64,
},
Timestamp {
millis: i64,
},
Redacted,
Status {
level: StatusLevel,
label_key: String,
},
}Expand description
A single cell value. Typed and redaction-aware (secrets never reach a cell as a plaintext value — the semantic layer already replaced them with a marker).
Variants use #[serde(tag = "type")] for a stable wire representation.
Variants§
Text
Number
Timestamp
A typed instant (unix epoch millis) — the frontend formats and localizes, so sorting and localization stay possible.
Redacted
A redacted value — the frontend renders a mask, never the secret.
Status
A typed status chip; level drives color, label_key is localized by the
frontend. Status inference lives in the semantic layer, not in string matching.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cell
impl<'de> Deserialize<'de> for Cell
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 Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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