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: bool
If set to true
any formatting errors will be written to the output
instead of being converted into a std::fmt::Error
null: String
Format 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: String
Duration format. Can be either "pretty"
or "ISO8601"
types_info: bool
Show 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 · 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§fn default() -> FormatOptions
fn default() -> FormatOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for FormatOptions
impl PartialEq for FormatOptions
Source§impl<'a> TryInto<FormatOptions<'a>> for &'a FormatOptions
impl<'a> TryInto<FormatOptions<'a>> for &'a FormatOptions
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<FormatOptions<'a>, DataFusionError>
fn try_into(self) -> Result<FormatOptions<'a>, DataFusionError>
Performs the conversion.
impl StructuralPartialEq for FormatOptions
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnwindSafe for FormatOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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