pub struct ColumnDescriptor {
pub attribute_name: String,
pub format: Option<String>,
pub label: String,
pub type_: Option<String>,
pub width: Option<i64>,
}
Expand description
A ColumnDescriptor specifies what module attribute to show in a column of the ModulesView, how to format it, and what the column’s label should be. It is only used if the underlying UI actually supports this level of customization.
Fields§
§attribute_name: String
Name of the attribute rendered in this column.
format: Option<String>
Format to use for the rendered values in this column. TBD how the format strings looks like.
label: String
Header UI label of column.
type_: Option<String>
Datatype of values in this column. Defaults to ‘string’ if not specified.
width: Option<i64>
Width of this column in characters (hint only).
Trait Implementations§
Source§impl Clone for ColumnDescriptor
impl Clone for ColumnDescriptor
Source§fn clone(&self) -> ColumnDescriptor
fn clone(&self) -> ColumnDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColumnDescriptor
impl Debug for ColumnDescriptor
Source§impl<'de> Deserialize<'de> for ColumnDescriptor
impl<'de> Deserialize<'de> for ColumnDescriptor
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
Source§impl PartialEq for ColumnDescriptor
impl PartialEq for ColumnDescriptor
Source§impl Serialize for ColumnDescriptor
impl Serialize for ColumnDescriptor
impl StructuralPartialEq for ColumnDescriptor
Auto Trait Implementations§
impl Freeze for ColumnDescriptor
impl RefUnwindSafe for ColumnDescriptor
impl Send for ColumnDescriptor
impl Sync for ColumnDescriptor
impl Unpin for ColumnDescriptor
impl UnwindSafe for ColumnDescriptor
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