Struct fiberplane_models::notebooks::TableCell
source · #[non_exhaustive]pub struct TableCell {
pub id: String,
pub read_only: Option<bool>,
pub column_defs: Vec<TableColumnDefinition>,
pub rows: Vec<TableRowData>,
}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.id: String§read_only: Option<bool>§column_defs: Vec<TableColumnDefinition>Describes which key in the TableRow element to render and the order of definitions also determines the order of the columns
rows: Vec<TableRowData>Holds the values/data
Implementations§
source§impl TableCell
impl TableCell
sourcepub fn builder() -> TableCellBuilder<((), (), (), ())>
pub fn builder() -> TableCellBuilder<((), (), (), ())>
Create a builder for building TableCell.
On the builder, call .id(...), .read_only(...)(optional), .column_defs(...)(optional), .rows(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of TableCell.
Trait Implementations§
source§impl<'de> Deserialize<'de> for TableCell
impl<'de> Deserialize<'de> for TableCell
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
source§impl PartialEq for TableCell
impl PartialEq for TableCell
impl StructuralPartialEq for TableCell
Auto Trait Implementations§
impl RefUnwindSafe for TableCell
impl Send for TableCell
impl Sync for TableCell
impl Unpin for TableCell
impl UnwindSafe for TableCell
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