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
sourceimpl 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
sourceimpl Clone for TableFormatColumnConfig
impl Clone for TableFormatColumnConfig
sourcefn clone(&self) -> TableFormatColumnConfig
fn clone(&self) -> TableFormatColumnConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TableFormatColumnConfig
impl Debug for TableFormatColumnConfig
sourceimpl Decoder for TableFormatColumnConfig
impl Decoder for TableFormatColumnConfig
sourceimpl Default for TableFormatColumnConfig
impl Default for TableFormatColumnConfig
sourcefn default() -> TableFormatColumnConfig
fn default() -> TableFormatColumnConfig
Returns the “default value” for a type. Read more
sourceimpl Encoder for TableFormatColumnConfig
impl Encoder for TableFormatColumnConfig
sourceimpl PartialEq<TableFormatColumnConfig> for TableFormatColumnConfig
impl PartialEq<TableFormatColumnConfig> for TableFormatColumnConfig
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TableFormatColumnConfig) -> bool
fn ne(&self, other: &TableFormatColumnConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for TableFormatColumnConfig
Auto Trait Implementations
impl RefUnwindSafe for TableFormatColumnConfig
impl Send for TableFormatColumnConfig
impl Sync for TableFormatColumnConfig
impl Unpin for TableFormatColumnConfig
impl UnwindSafe for TableFormatColumnConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more