pub struct HtmlWriteOptions {
pub include_index: bool,
pub na_rep: String,
pub classes: Vec<String>,
pub table_id: Option<String>,
pub border: Option<u32>,
pub justify: Option<String>,
pub escape: bool,
pub render_links: bool,
}Expand description
Options controlling HTML table serialization.
Covers the pure string subset of pandas DataFrame.to_html.
Fields§
§include_index: boolIf true, include the index as the first column. Default: true.
na_rep: StringString written for missing values. Matches pandas na_rep.
Default: "NaN".
classes: Vec<String>Additional CSS classes appended to pandas’ default dataframe class.
Entries may contain whitespace-separated class names.
table_id: Option<String>Optional id attribute for the <table> element.
border: Option<u32>Optional border value. Some(0) and None omit the border attribute.
justify: Option<String>Optional header text alignment. Defaults to pandas’ "right".
escape: boolEscape HTML-sensitive characters in headers, index labels, and cells.
render_links: boolConvert URL-like string values to anchors.
Trait Implementations§
Source§impl Clone for HtmlWriteOptions
impl Clone for HtmlWriteOptions
Source§fn clone(&self) -> HtmlWriteOptions
fn clone(&self) -> HtmlWriteOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HtmlWriteOptions
impl Debug for HtmlWriteOptions
Auto Trait Implementations§
impl Freeze for HtmlWriteOptions
impl RefUnwindSafe for HtmlWriteOptions
impl Send for HtmlWriteOptions
impl Sync for HtmlWriteOptions
impl Unpin for HtmlWriteOptions
impl UnsafeUnpin for HtmlWriteOptions
impl UnwindSafe for HtmlWriteOptions
Blanket Implementations§
impl<T> Allocation for T
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