#[non_exhaustive]pub struct JsonFileFormat {
pub schema_file_format: SchemaFileFormat,
pub compression: JsonCompression,
/* private fields */
}
Expand description
JSON file format configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.schema_file_format: SchemaFileFormat
The schema file format along JSON data files.
compression: JsonCompression
Compression of the loaded JSON file.
Implementations§
Source§impl JsonFileFormat
impl JsonFileFormat
pub fn new() -> Self
Sourcepub fn set_schema_file_format<T: Into<SchemaFileFormat>>(self, v: T) -> Self
pub fn set_schema_file_format<T: Into<SchemaFileFormat>>(self, v: T) -> Self
Sets the value of schema_file_format.
Sourcepub fn set_compression<T: Into<JsonCompression>>(self, v: T) -> Self
pub fn set_compression<T: Into<JsonCompression>>(self, v: T) -> Self
Sets the value of compression.
Trait Implementations§
Source§impl Clone for JsonFileFormat
impl Clone for JsonFileFormat
Source§fn clone(&self) -> JsonFileFormat
fn clone(&self) -> JsonFileFormat
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 Debug for JsonFileFormat
impl Debug for JsonFileFormat
Source§impl Default for JsonFileFormat
impl Default for JsonFileFormat
Source§fn default() -> JsonFileFormat
fn default() -> JsonFileFormat
Returns the “default value” for a type. Read more
Source§impl Message for JsonFileFormat
impl Message for JsonFileFormat
Source§impl PartialEq for JsonFileFormat
impl PartialEq for JsonFileFormat
impl StructuralPartialEq for JsonFileFormat
Auto Trait Implementations§
impl Freeze for JsonFileFormat
impl RefUnwindSafe for JsonFileFormat
impl Send for JsonFileFormat
impl Sync for JsonFileFormat
impl Unpin for JsonFileFormat
impl UnwindSafe for JsonFileFormat
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