pub struct TableFormatColumnConfig {
pub header_label: Option<String>,
pub width: Option<String>,
pub alignment: Option<TableFormatAlignment>,
pub key_path: String,
pub format: Option<String>,
pub display: Option<bool>,
pub primary_key: Option<bool>,
pub header_bg_color: Option<Color>,
pub header_text_color: Option<Color>,
}
Fields§
§header_label: Option<String>
§width: Option<String>
§alignment: Option<TableFormatAlignment>
§key_path: String
§format: Option<String>
§display: Option<bool>
§primary_key: Option<bool>
§header_bg_color: Option<Color>
§header_text_color: Option<Color>
Implementations§
source§impl TableFormatColumnConfig
impl TableFormatColumnConfig
pub fn new(key_path: String) -> Self
pub fn with_primary_key(self, is_primary_key: Option<bool>) -> Self
pub fn with_display(self, do_display_column: Option<bool>) -> Self
pub fn with_header_label(self, header_label: Option<String>) -> Self
pub fn with_alignment(self, alignment: Option<TableFormatAlignment>) -> Self
pub fn with_header_text_color(self, header_text_color: Option<Color>) -> Self
pub fn with_header_bg_color(self, header_bg_color: Option<Color>) -> Self
Trait Implementations§
source§impl Clone for TableFormatColumnConfig
impl Clone for TableFormatColumnConfig
source§fn clone(&self) -> TableFormatColumnConfig
fn clone(&self) -> TableFormatColumnConfig
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 TableFormatColumnConfig
impl Debug for TableFormatColumnConfig
source§impl Decoder for TableFormatColumnConfig
impl Decoder for TableFormatColumnConfig
source§impl Default for TableFormatColumnConfig
impl Default for TableFormatColumnConfig
source§fn default() -> TableFormatColumnConfig
fn default() -> TableFormatColumnConfig
Returns the “default value” for a type. Read more
source§impl Encoder for TableFormatColumnConfig
impl Encoder for TableFormatColumnConfig
source§impl PartialEq for TableFormatColumnConfig
impl PartialEq for TableFormatColumnConfig
source§fn eq(&self, other: &TableFormatColumnConfig) -> bool
fn eq(&self, other: &TableFormatColumnConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TableFormatColumnConfig
impl StructuralPartialEq for TableFormatColumnConfig
Auto Trait Implementations§
impl Freeze for TableFormatColumnConfig
impl RefUnwindSafe for TableFormatColumnConfig
impl Send for TableFormatColumnConfig
impl Sync for TableFormatColumnConfig
impl Unpin for TableFormatColumnConfig
impl UnwindSafe for TableFormatColumnConfig
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.