pub struct ColumnDescriptor {
pub attribute_name: String,
pub label: String,
pub format: String,
pub column_descriptor_type: Option<ColumnDescriptorType>,
pub width: Option<i64>,
}Fields§
§attribute_name: StringName of the attribute rendered in this column.
label: StringHeader UI label of column.
format: StringFormat to use for the rendered values in this column. TBD how the format strings looks like.
column_descriptor_type: Option<ColumnDescriptorType>Datatype of values in this column. Defaults to string if not specified.
Values: ‘string’, ‘number’, ‘bool’, ‘unixTimestampUTC’
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 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 Default for ColumnDescriptor
impl Default for ColumnDescriptor
Source§fn default() -> ColumnDescriptor
fn default() -> ColumnDescriptor
Returns the “default value” for a type. Read more
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 UnsafeUnpin 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