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) -> Self
Sourcepub fn new_with_level(
compression: CompressionTypeVariant,
compression_level: u32,
) -> Self
pub fn new_with_level( compression: CompressionTypeVariant, compression_level: u32, ) -> Self
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<Self>
fn try_from(value: &JsonOptions) -> Result<Self>
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§
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