pub struct CsvTableOptions {
pub separator: char,
pub has_header: bool,
pub caption: Option<String>,
pub class: String,
pub data_type: Option<String>,
}Expand description
Options controlling how a CSV/TSV payload is rendered as an HTML table.
Fields§
§separator: charColumn separator: , for CSV, \t for TSV.
has_header: boolTreat the first row as <th> headers.
caption: Option<String>Optional caption rendered inside a <caption> element.
class: StringCSS class applied to the wrapping <table> element.
data_type: Option<String>Optional data-type attribute applied to the wrapping <table> element
(v1 vocabulary: .moss-embed[data-type="table"]).
Auto Trait Implementations§
impl Freeze for CsvTableOptions
impl RefUnwindSafe for CsvTableOptions
impl Send for CsvTableOptions
impl Sync for CsvTableOptions
impl Unpin for CsvTableOptions
impl UnsafeUnpin for CsvTableOptions
impl UnwindSafe for CsvTableOptions
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