#[non_exhaustive]pub struct StorageDescriptor {
pub location_uri: String,
pub input_format: String,
pub output_format: String,
pub serde_info: Option<SerDeInfo>,
/* private fields */
}Expand description
Contains information about how a table’s data is stored and accessed by open source query engines.
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.location_uri: StringOptional. The physical location of the table
(e.g. gs://spark-dataproc-data/pangea-data/case_sensitive/ or
gs://spark-dataproc-data/pangea-data/*).
The maximum length is 2056 bytes.
input_format: StringOptional. Specifies the fully qualified class name of the InputFormat (e.g. “org.apache.hadoop.hive.ql.io.orc.OrcInputFormat”). The maximum length is 128 characters.
output_format: StringOptional. Specifies the fully qualified class name of the OutputFormat (e.g. “org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat”). The maximum length is 128 characters.
serde_info: Option<SerDeInfo>Optional. Serializer and deserializer information.
Implementations§
Source§impl StorageDescriptor
impl StorageDescriptor
Sourcepub fn set_location_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_location_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of location_uri.
§Example
let x = StorageDescriptor::new().set_location_uri("example");Sourcepub fn set_input_format<T: Into<String>>(self, v: T) -> Self
pub fn set_input_format<T: Into<String>>(self, v: T) -> Self
Sets the value of input_format.
§Example
let x = StorageDescriptor::new().set_input_format("example");Sourcepub fn set_output_format<T: Into<String>>(self, v: T) -> Self
pub fn set_output_format<T: Into<String>>(self, v: T) -> Self
Sets the value of output_format.
§Example
let x = StorageDescriptor::new().set_output_format("example");Sourcepub fn set_serde_info<T>(self, v: T) -> Self
pub fn set_serde_info<T>(self, v: T) -> Self
Sets the value of serde_info.
§Example
use google_cloud_bigquery_v2::model::SerDeInfo;
let x = StorageDescriptor::new().set_serde_info(SerDeInfo::default()/* use setters */);Sourcepub fn set_or_clear_serde_info<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_serde_info<T>(self, v: Option<T>) -> Self
Sets or clears the value of serde_info.
§Example
use google_cloud_bigquery_v2::model::SerDeInfo;
let x = StorageDescriptor::new().set_or_clear_serde_info(Some(SerDeInfo::default()/* use setters */));
let x = StorageDescriptor::new().set_or_clear_serde_info(None::<SerDeInfo>);Trait Implementations§
Source§impl Clone for StorageDescriptor
impl Clone for StorageDescriptor
Source§fn clone(&self) -> StorageDescriptor
fn clone(&self) -> StorageDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StorageDescriptor
impl Debug for StorageDescriptor
Source§impl Default for StorageDescriptor
impl Default for StorageDescriptor
Source§fn default() -> StorageDescriptor
fn default() -> StorageDescriptor
Source§impl Message for StorageDescriptor
impl Message for StorageDescriptor
Source§impl PartialEq for StorageDescriptor
impl PartialEq for StorageDescriptor
impl StructuralPartialEq for StorageDescriptor
Auto Trait Implementations§
impl Freeze for StorageDescriptor
impl RefUnwindSafe for StorageDescriptor
impl Send for StorageDescriptor
impl Sync for StorageDescriptor
impl Unpin for StorageDescriptor
impl UnsafeUnpin for StorageDescriptor
impl UnwindSafe for StorageDescriptor
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request