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§impl Debug for HtmlWriteOptions
impl Debug for HtmlWriteOptions
Auto Trait Implementations§
impl Forget for HtmlWriteOptions
impl Freeze for HtmlWriteOptions
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more