pub struct JsonWriterOptions {
pub compression: CompressionTypeVariant,
pub compression_level: Option<u32>,
}Expand description
Options for writing JSON files
Fields§
§compression: CompressionTypeVariant§compression_level: Option<u32>Implementations§
Source§impl JsonWriterOptions
impl JsonWriterOptions
pub fn new(compression: CompressionTypeVariant) -> JsonWriterOptions
Sourcepub fn new_with_level(
compression: CompressionTypeVariant,
compression_level: u32,
) -> JsonWriterOptions
pub fn new_with_level( compression: CompressionTypeVariant, compression_level: u32, ) -> JsonWriterOptions
Create a new JsonWriterOptions with the specified compression and level.
Trait Implementations§
Source§impl Clone for JsonWriterOptions
impl Clone for JsonWriterOptions
Source§fn clone(&self) -> JsonWriterOptions
fn clone(&self) -> JsonWriterOptions
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 JsonWriterOptions
impl Debug for JsonWriterOptions
Source§impl TryFrom<&JsonOptions> for JsonWriterOptions
impl TryFrom<&JsonOptions> for JsonWriterOptions
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &JsonOptions) -> Result<JsonWriterOptions, DataFusionError>
fn try_from(value: &JsonOptions) -> Result<JsonWriterOptions, DataFusionError>
Performs the conversion.
Source§impl TryFrom<&JsonWriterOptions> for JsonWriterOptions
impl TryFrom<&JsonWriterOptions> for JsonWriterOptions
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
Source§fn try_from(
opts: &JsonWriterOptions,
) -> Result<JsonWriterOptions, <JsonWriterOptions as TryFrom<&JsonWriterOptions>>::Error>
fn try_from( opts: &JsonWriterOptions, ) -> Result<JsonWriterOptions, <JsonWriterOptions as TryFrom<&JsonWriterOptions>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for JsonWriterOptions
impl RefUnwindSafe for JsonWriterOptions
impl Send for JsonWriterOptions
impl Sync for JsonWriterOptions
impl Unpin for JsonWriterOptions
impl UnsafeUnpin for JsonWriterOptions
impl UnwindSafe for JsonWriterOptions
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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