Struct etop_format::table_formats::DataFrameFormat
source · pub struct DataFrameFormat {
pub column_formats: Option<Vec<ColumnFormatShorthand>>,
pub column_delimiter: String,
pub header_separator_delimiter: String,
pub header_separator_char: char,
pub include_header_row: bool,
pub include_header_separator_row: bool,
pub include_summary_row: bool,
pub include_summary_separator_row: bool,
pub render_height: Option<usize>,
pub max_render_width: Option<usize>,
}Expand description
dataframe format
Fields§
§column_formats: Option<Vec<ColumnFormatShorthand>>column formats
column_delimiter: Stringcolumn delimiter
header_separator_delimiter: Stringheader separator delimiter
header_separator_char: charheader separator char
include_header_row: boolinclude header row
include_header_separator_row: boolinclude header separator row
include_summary_row: boolinclude summary row
include_summary_separator_row: boolinclude summary separator row
render_height: Option<usize>render height
max_render_width: Option<usize>max render width
Implementations§
source§impl DataFrameFormat
impl DataFrameFormat
sourcepub fn format(&self, df: DataFrame) -> Result<String, FormatError>
pub fn format(&self, df: DataFrame) -> Result<String, FormatError>
format dataframe as String
Trait Implementations§
source§impl Debug for DataFrameFormat
impl Debug for DataFrameFormat
source§impl Default for DataFrameFormat
impl Default for DataFrameFormat
source§fn default() -> DataFrameFormat
fn default() -> DataFrameFormat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DataFrameFormat
impl Send for DataFrameFormat
impl Sync for DataFrameFormat
impl Unpin for DataFrameFormat
impl UnwindSafe for DataFrameFormat
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