#[non_exhaustive]pub struct StorageFormat {
pub format: Format,
pub compression_format: CompressionFormat,
pub mime_type: String,
pub options: Option<Options>,
/* private fields */
}Expand description
Describes the format of the data within its storage location.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: FormatOutput only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type.
compression_format: CompressionFormatOptional. The compression type associated with the stored data. If unspecified, the data is uncompressed.
mime_type: StringRequired. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values:
- application/x-parquet
- application/x-avro
- application/x-orc
- application/x-tfrecord
- application/x-parquet+iceberg
- application/x-avro+iceberg
- application/x-orc+iceberg
- application/json
- application/{subtypes}
- text/csv
- text/<subtypes>
- image/{image subtype}
- video/{video subtype}
- audio/{audio subtype}
options: Option<Options>Additional format-specific options.
Implementations§
Source§impl StorageFormat
impl StorageFormat
pub fn new() -> Self
Sourcepub fn set_format<T: Into<Format>>(self, v: T) -> Self
pub fn set_format<T: Into<Format>>(self, v: T) -> Self
Sets the value of format.
Sourcepub fn set_compression_format<T: Into<CompressionFormat>>(self, v: T) -> Self
pub fn set_compression_format<T: Into<CompressionFormat>>(self, v: T) -> Self
Sets the value of compression_format.
Sourcepub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
pub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
Sets the value of mime_type.
Sourcepub fn set_options<T: Into<Option<Options>>>(self, v: T) -> Self
pub fn set_options<T: Into<Option<Options>>>(self, v: T) -> Self
Sets the value of options.
Note that all the setters affecting options are mutually
exclusive.
Sourcepub fn csv(&self) -> Option<&Box<CsvOptions>>
pub fn csv(&self) -> Option<&Box<CsvOptions>>
The value of options
if it holds a Csv, None if the field is not set or
holds a different branch.
Sourcepub fn set_csv<T: Into<Box<CsvOptions>>>(self, v: T) -> Self
pub fn set_csv<T: Into<Box<CsvOptions>>>(self, v: T) -> Self
Sets the value of options
to hold a Csv.
Note that all the setters affecting options are
mutually exclusive.
Sourcepub fn json(&self) -> Option<&Box<JsonOptions>>
pub fn json(&self) -> Option<&Box<JsonOptions>>
The value of options
if it holds a Json, None if the field is not set or
holds a different branch.
Sourcepub fn set_json<T: Into<Box<JsonOptions>>>(self, v: T) -> Self
pub fn set_json<T: Into<Box<JsonOptions>>>(self, v: T) -> Self
Sets the value of options
to hold a Json.
Note that all the setters affecting options are
mutually exclusive.
Sourcepub fn iceberg(&self) -> Option<&Box<IcebergOptions>>
pub fn iceberg(&self) -> Option<&Box<IcebergOptions>>
The value of options
if it holds a Iceberg, None if the field is not set or
holds a different branch.
Sourcepub fn set_iceberg<T: Into<Box<IcebergOptions>>>(self, v: T) -> Self
pub fn set_iceberg<T: Into<Box<IcebergOptions>>>(self, v: T) -> Self
Sets the value of options
to hold a Iceberg.
Note that all the setters affecting options are
mutually exclusive.
Trait Implementations§
Source§impl Clone for StorageFormat
impl Clone for StorageFormat
Source§fn clone(&self) -> StorageFormat
fn clone(&self) -> StorageFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more