pub struct ColumnDefinition {
pub id: String,
pub label: String,
pub description: Option<String>,
pub field_path: String,
pub data_type: ColumnDataType,
pub renderer: CellRenderer,
pub visibility: ColumnVisibility,
pub default_visible: bool,
pub width: Option<u32>,
pub sortable: bool,
pub filterable: bool,
}Fields§
§id: String§label: String§description: Option<String>§field_path: String§data_type: ColumnDataType§renderer: CellRenderer§visibility: ColumnVisibility§default_visible: bool§width: Option<u32>§sortable: bool§filterable: boolImplementations§
Source§impl ColumnDefinition
impl ColumnDefinition
pub fn new( id: &str, label: &str, field_path: &str, data_type: ColumnDataType, renderer: CellRenderer, ) -> Self
pub fn badge(id: &str, label: &str, field_path: &str) -> Self
pub fn text(id: &str, label: &str, field_path: &str) -> Self
pub fn metadata( id: &str, label: &str, description: &str, renderer: CellRenderer, default_visible: bool, ) -> Self
pub fn described(self, description: &str) -> Self
pub fn with_width(self, width: u32) -> Self
pub fn when_present(self) -> Self
pub fn sortable(self) -> Self
pub fn filterable(self) -> Self
Trait Implementations§
Source§impl Clone for ColumnDefinition
impl Clone for ColumnDefinition
Source§impl Debug for ColumnDefinition
impl Debug for ColumnDefinition
Source§impl<'de> Deserialize<'de> for ColumnDefinition
impl<'de> Deserialize<'de> for ColumnDefinition
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
Auto Trait Implementations§
impl Forget for ColumnDefinition
impl Freeze for ColumnDefinition
impl RefUnwindSafe for ColumnDefinition
impl Send for ColumnDefinition
impl Sync for ColumnDefinition
impl Unpin for ColumnDefinition
impl UnsafeUnpin for ColumnDefinition
impl UnwindSafe for ColumnDefinition
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