pub struct Column {
pub key: String,
pub label: String,
pub width: Option<u16>,
pub sortable: bool,
}Expand description
A column definition for the Table component.
Fields§
§key: StringUnique identifier for this column, used as a key into row data.
label: StringDisplay label shown in the table header.
width: Option<u16>Fixed width in columns, or None to distribute space automatically.
sortable: boolWhether the column can be sorted.
Implementations§
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