pub struct Table {
pub rows: Vec<Row>,
pub column_widths: Option<Vec<u32>>,
pub caption: Option<String>,
pub style_id: Option<String>,
}Expand description
A table.
Fields§
§rows: Vec<Row>Rows in this table
column_widths: Option<Vec<u32>>Column widths in twips (optional)
caption: Option<String>Table caption
style_id: Option<String>Table style ID
Implementations§
Source§impl Table
impl Table
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Get the maximum number of columns across all rows.
Sourcepub fn has_merged_cells(&self) -> bool
pub fn has_merged_cells(&self) -> bool
Check if the table has merged cells.
Sourcepub fn header_rows(&self) -> Vec<&Row>
pub fn header_rows(&self) -> Vec<&Row>
Get the header rows.
Sourcepub fn plain_text(&self) -> String
pub fn plain_text(&self) -> String
Get plain text representation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Table
impl<'de> Deserialize<'de> for Table
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
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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