pub struct FormatOptions {
pub safe: bool,
pub null: String,
pub date_format: Option<String>,
pub datetime_format: Option<String>,
pub timestamp_format: Option<String>,
pub timestamp_tz_format: Option<String>,
pub time_format: Option<String>,
pub duration_format: String,
pub types_info: bool,
}Expand description
Options controlling the format of output when printing record batches
Copies arrow::util::display::FormatOptions
Fields§
§safe: boolIf set to true any formatting errors will be written to the output
instead of being converted into a std::fmt::Error
null: StringFormat string for nulls
date_format: Option<String>Date format for date arrays
datetime_format: Option<String>Format for DateTime arrays
timestamp_format: Option<String>Timestamp format for timestamp arrays
timestamp_tz_format: Option<String>Timestamp format for timestamp with timezone arrays. When None, ISO 8601 format is used.
time_format: Option<String>Time format for time arrays
duration_format: StringDuration format. Can be either "pretty" or "ISO8601"
types_info: boolShow types in visual representation batches
Trait Implementations§
Source§impl Clone for FormatOptions
impl Clone for FormatOptions
Source§fn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptions
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 ConfigField for FormatOptions
impl ConfigField for FormatOptions
Source§impl Debug for FormatOptions
impl Debug for FormatOptions
Source§impl Default for FormatOptions
impl Default for FormatOptions
Source§impl PartialEq for FormatOptions
impl PartialEq for FormatOptions
Source§fn eq(&self, other: &FormatOptions) -> bool
fn eq(&self, other: &FormatOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FormatOptions
Source§impl<'a> TryFrom<&'a FormatOptions> for FormatOptions<'a>
impl<'a> TryFrom<&'a FormatOptions> for FormatOptions<'a>
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
Source§fn try_from(options: &'a FormatOptions) -> Result<Self>
fn try_from(options: &'a FormatOptions) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnsafeUnpin for FormatOptions
impl UnwindSafe for FormatOptions
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