pub struct Column {
pub id: String,
pub header_key: String,
pub kind: ColumnKind,
pub sortable: bool,
pub field: Option<String>,
}Expand description
A column definition. The view-model owns meaning (id, header key, data kind,
sortability, and the data-binding field); the frontend owns geometry (rendered
width in cells vs. font metrics). There is deliberately no width field here.
Fields§
§id: String§header_key: StringMessage key resolved by the frontend for i18n (the view-model emits keys + args, not localized strings).
kind: ColumnKindThe data kind — semantics (numeric vs. text) drives alignment and sort order.
sortable: bool§field: Option<String>For lens (view-definition) columns: the dotted JSON path that supplies this
column’s value (e.g. metadata.name, spec.instances). None for built-in
surfaces and for the Status column, whose value is inferred by the lens’s
status rules rather than read from a single field (ADR-0012: the schema must
express where every value comes from).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
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 Eq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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