Struct google_api_proto::google::cloud::dataplex::v1::StorageFormat
source · pub struct StorageFormat {
pub format: i32,
pub compression_format: i32,
pub mime_type: String,
pub options: Option<Options>,
}
Expand description
Describes the format of the data within its storage location.
Fields§
§format: i32
Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type.
compression_format: i32
Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed.
mime_type: String
Required. 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/
- image/{image subtype}
- video/{video subtype}
- audio/{audio subtype}
options: Option<Options>
Additional format-specific options.
Implementations§
source§impl StorageFormat
impl StorageFormat
sourcepub fn format(&self) -> Format
pub fn format(&self) -> Format
Returns the enum value of format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_format(&mut self, value: Format)
pub fn set_format(&mut self, value: Format)
Sets format
to the provided enum value.
sourcepub fn compression_format(&self) -> CompressionFormat
pub fn compression_format(&self) -> CompressionFormat
Returns the enum value of compression_format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_compression_format(&mut self, value: CompressionFormat)
pub fn set_compression_format(&mut self, value: CompressionFormat)
Sets compression_format
to the provided enum value.
Trait Implementations§
source§impl Clone for StorageFormat
impl Clone for StorageFormat
source§fn clone(&self) -> StorageFormat
fn clone(&self) -> StorageFormat
Returns a copy 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 StorageFormat
impl Debug for StorageFormat
source§impl Default for StorageFormat
impl Default for StorageFormat
source§impl Message for StorageFormat
impl Message for StorageFormat
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for StorageFormat
impl PartialEq for StorageFormat
source§fn eq(&self, other: &StorageFormat) -> bool
fn eq(&self, other: &StorageFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StorageFormat
Auto Trait Implementations§
impl Freeze for StorageFormat
impl RefUnwindSafe for StorageFormat
impl Send for StorageFormat
impl Sync for StorageFormat
impl Unpin for StorageFormat
impl UnwindSafe for StorageFormat
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request