pub struct ColumnDescriptor {
pub attribute_name: String,
pub label: String,
pub format: Option<String>,
pub type_: Option<ColumnDescriptorType>,
pub width: Option<u64>,
}
Expand description
A ColumnDescriptor
specifies what module attribute to show in a column of the modules view, 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.
label: String
Header UI label of column.
format: Option<String>
Format to use for the rendered values in this column. TBD how the format strings looks like.
type_: Option<ColumnDescriptorType>
Datatype of values in this column. Defaults to string
if not specified.
width: Option<u64>
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 duplicate 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
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