pub enum TableDirective {
Table {
name: Option<String>,
class: Option<String>,
align: Option<HorizontalAlignment>,
widths: Option<Vec<usize>>,
width: Option<Length>,
},
CSVTable {Show 15 fields
name: Option<String>,
class: Option<String>,
widths: Option<TableColWidths>,
width: Option<MetricType>,
header_rows: Option<u32>,
stub_columns: Option<u32>,
header: Option<Vec<String>>,
file: Option<String>,
url: Option<String>,
encoding: Option<String>,
delim: Option<char>,
quote: Option<char>,
keepspace: Option<bool>,
escape: Option<char>,
align: Option<HorizontalAlignment>,
},
ListTable {
widths: Option<TableColWidths>,
width: Option<MetricType>,
header_rows: Option<u32>,
stub_columns: Option<u32>,
align: Option<HorizontalAlignment>,
},
}Expand description
An enumeration of different table directive types.
Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#tables
Variants§
Table
The “table” directive is used to associate a title with a table or specify options.
Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#table
Fields
align: Option<HorizontalAlignment>CSVTable
The “csv-table” directive is used to create a table from CSV (comma-separated values) data. CSV is a common data format generated by spreadsheet applications and commercial databases. The data may be internal (an integral part of the document) or external (a separate file).
Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#id4
ListTable
The “list-table” directive is used to create a table from data in a uniform two-level bullet list. “Uniform” means that each sublist (second-level list) must contain the same number of list items.
Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#list-table