#[non_exhaustive]pub struct TableConfig {
pub enable_text_wrap: bool,
pub column_render_type_settings: Vec<ColumnRenderTypeSettings>,
pub column_tooltip_settings: Vec<ColumnTooltipSettings>,
/* private fields */
}Expand description
Configuration for table appearance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_text_wrap: boolOptional. Whether to show the table.
column_render_type_settings: Vec<ColumnRenderTypeSettings>Optional. Column render type settings.
column_tooltip_settings: Vec<ColumnTooltipSettings>Optional. Settings for tooltip for column header and cell.
Implementations§
Source§impl TableConfig
impl TableConfig
Sourcepub fn set_enable_text_wrap<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_text_wrap<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_text_wrap.
§Example
ⓘ
let x = TableConfig::new().set_enable_text_wrap(true);Sourcepub fn set_column_render_type_settings<T, V>(self, v: T) -> Self
pub fn set_column_render_type_settings<T, V>(self, v: T) -> Self
Sets the value of column_render_type_settings.
§Example
ⓘ
use google_cloud_chronicle_v1::model::dashboard_chart::visualization::ColumnRenderTypeSettings;
let x = TableConfig::new()
.set_column_render_type_settings([
ColumnRenderTypeSettings::default()/* use setters */,
ColumnRenderTypeSettings::default()/* use (different) setters */,
]);Sourcepub fn set_column_tooltip_settings<T, V>(self, v: T) -> Self
pub fn set_column_tooltip_settings<T, V>(self, v: T) -> Self
Sets the value of column_tooltip_settings.
§Example
ⓘ
use google_cloud_chronicle_v1::model::dashboard_chart::visualization::ColumnTooltipSettings;
let x = TableConfig::new()
.set_column_tooltip_settings([
ColumnTooltipSettings::default()/* use setters */,
ColumnTooltipSettings::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for TableConfig
impl Clone for TableConfig
Source§fn clone(&self) -> TableConfig
fn clone(&self) -> TableConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TableConfig
impl Debug for TableConfig
Source§impl Default for TableConfig
impl Default for TableConfig
Source§fn default() -> TableConfig
fn default() -> TableConfig
Returns the “default value” for a type. Read more
Source§impl Message for TableConfig
impl Message for TableConfig
Source§impl PartialEq for TableConfig
impl PartialEq for TableConfig
Source§fn eq(&self, other: &TableConfig) -> bool
fn eq(&self, other: &TableConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableConfig
Auto Trait Implementations§
impl Freeze for TableConfig
impl RefUnwindSafe for TableConfig
impl Send for TableConfig
impl Sync for TableConfig
impl Unpin for TableConfig
impl UnsafeUnpin for TableConfig
impl UnwindSafe for TableConfig
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