pub struct Builder<T>(/* private fields */);
Expand description
A builder for ValueTableLayoutGrid
Implementations§
Source§impl Builder<GridDefaultCellConfigsStage>
impl Builder<GridDefaultCellConfigsStage>
Sourcepub fn grid_default_cell_configs(
self,
grid_default_cell_configs: ValueTableMultiCellConfig,
) -> Builder<RowCountStage>
pub fn grid_default_cell_configs( self, grid_default_cell_configs: ValueTableMultiCellConfig, ) -> Builder<RowCountStage>
Sets the grid_default_cell_configs
field.
Source§impl Builder<RowCountStage>
impl Builder<RowCountStage>
Sourcepub fn row_count(self, row_count: i32) -> Builder<ColumnCountStage>
pub fn row_count(self, row_count: i32) -> Builder<ColumnCountStage>
Sets the row_count
field.
Source§impl Builder<ColumnCountStage>
impl Builder<ColumnCountStage>
Sourcepub fn column_count(self, column_count: i32) -> Builder<Complete>
pub fn column_count(self, column_count: i32) -> Builder<Complete>
Sets the column_count
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn show_row_headers(self, show_row_headers: impl Into<Option<bool>>) -> Self
pub fn show_row_headers(self, show_row_headers: impl Into<Option<bool>>) -> Self
Sets the show_row_headers
field.
Sourcepub fn show_column_headers(
self,
show_column_headers: impl Into<Option<bool>>,
) -> Self
pub fn show_column_headers( self, show_column_headers: impl Into<Option<bool>>, ) -> Self
Sets the show_column_headers
field.
Sourcepub fn show_cell_labels(self, show_cell_labels: impl Into<Option<bool>>) -> Self
pub fn show_cell_labels(self, show_cell_labels: impl Into<Option<bool>>) -> Self
Sets the show_cell_labels
field.
Sourcepub fn grid_default_cell_configs(
self,
grid_default_cell_configs: ValueTableMultiCellConfig,
) -> Self
pub fn grid_default_cell_configs( self, grid_default_cell_configs: ValueTableMultiCellConfig, ) -> Self
Sets the grid_default_cell_configs
field.
Sourcepub fn push_column_configs(
self,
column_configs: ValueTableGridRowColumnConfig,
) -> Self
pub fn push_column_configs( self, column_configs: ValueTableGridRowColumnConfig, ) -> Self
Adds a value to the column_configs
field.
Sourcepub fn column_configs(
self,
column_configs: impl IntoIterator<Item = ValueTableGridRowColumnConfig>,
) -> Self
pub fn column_configs( self, column_configs: impl IntoIterator<Item = ValueTableGridRowColumnConfig>, ) -> Self
Sets the column_configs
field.
Sourcepub fn extend_column_configs(
self,
column_configs: impl IntoIterator<Item = ValueTableGridRowColumnConfig>,
) -> Self
pub fn extend_column_configs( self, column_configs: impl IntoIterator<Item = ValueTableGridRowColumnConfig>, ) -> Self
Adds values to the column_configs
field.
Sourcepub fn push_row_configs(
self,
row_configs: ValueTableGridRowColumnConfig,
) -> Self
pub fn push_row_configs( self, row_configs: ValueTableGridRowColumnConfig, ) -> Self
Adds a value to the row_configs
field.
Sourcepub fn row_configs(
self,
row_configs: impl IntoIterator<Item = ValueTableGridRowColumnConfig>,
) -> Self
pub fn row_configs( self, row_configs: impl IntoIterator<Item = ValueTableGridRowColumnConfig>, ) -> Self
Sets the row_configs
field.
Sourcepub fn extend_row_configs(
self,
row_configs: impl IntoIterator<Item = ValueTableGridRowColumnConfig>,
) -> Self
pub fn extend_row_configs( self, row_configs: impl IntoIterator<Item = ValueTableGridRowColumnConfig>, ) -> Self
Adds values to the row_configs
field.
Sourcepub fn column_count(self, column_count: i32) -> Self
pub fn column_count(self, column_count: i32) -> Self
Sets the column_count
field.
Sourcepub fn push_cells(self, cells: ValueTableGridValueTableCell) -> Self
pub fn push_cells(self, cells: ValueTableGridValueTableCell) -> Self
Adds a value to the cells
field.
Sourcepub fn cells(
self,
cells: impl IntoIterator<Item = ValueTableGridValueTableCell>,
) -> Self
pub fn cells( self, cells: impl IntoIterator<Item = ValueTableGridValueTableCell>, ) -> Self
Sets the cells
field.
Sourcepub fn extend_cells(
self,
cells: impl IntoIterator<Item = ValueTableGridValueTableCell>,
) -> Self
pub fn extend_cells( self, cells: impl IntoIterator<Item = ValueTableGridValueTableCell>, ) -> Self
Adds values to the cells
field.
Sourcepub fn build(self) -> ValueTableLayoutGrid
pub fn build(self) -> ValueTableLayoutGrid
Consumes the builder, returning a ValueTableLayoutGrid
.
Trait Implementations§
Source§impl Default for Builder<GridDefaultCellConfigsStage>
impl Default for Builder<GridDefaultCellConfigsStage>
Source§impl From<ValueTableLayoutGrid> for Builder<Complete>
impl From<ValueTableLayoutGrid> for Builder<Complete>
Source§fn from(v: ValueTableLayoutGrid) -> Self
fn from(v: ValueTableLayoutGrid) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request