#[non_exhaustive]pub struct BlmtConfig {
pub bucket: String,
pub root_path: String,
pub connection_name: String,
pub file_format: FileFormat,
pub table_format: TableFormat,
/* private fields */
}
Expand description
The configuration for BLMT.
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.bucket: String
Required. The Cloud Storage bucket name.
root_path: String
The root path inside the Cloud Storage bucket.
connection_name: String
Required. The bigquery connection.
Format: {project}.{location}.{name}
file_format: FileFormat
Required. The file format.
table_format: TableFormat
Required. The table format.
Implementations§
Source§impl BlmtConfig
impl BlmtConfig
pub fn new() -> Self
Sourcepub fn set_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of bucket.
Sourcepub fn set_root_path<T: Into<String>>(self, v: T) -> Self
pub fn set_root_path<T: Into<String>>(self, v: T) -> Self
Sets the value of root_path.
Sourcepub fn set_connection_name<T: Into<String>>(self, v: T) -> Self
pub fn set_connection_name<T: Into<String>>(self, v: T) -> Self
Sets the value of connection_name.
Sourcepub fn set_file_format<T: Into<FileFormat>>(self, v: T) -> Self
pub fn set_file_format<T: Into<FileFormat>>(self, v: T) -> Self
Sets the value of file_format.
Sourcepub fn set_table_format<T: Into<TableFormat>>(self, v: T) -> Self
pub fn set_table_format<T: Into<TableFormat>>(self, v: T) -> Self
Sets the value of table_format.
Trait Implementations§
Source§impl Clone for BlmtConfig
impl Clone for BlmtConfig
Source§fn clone(&self) -> BlmtConfig
fn clone(&self) -> BlmtConfig
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 BlmtConfig
impl Debug for BlmtConfig
Source§impl Default for BlmtConfig
impl Default for BlmtConfig
Source§fn default() -> BlmtConfig
fn default() -> BlmtConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for BlmtConfig
impl PartialEq for BlmtConfig
impl StructuralPartialEq for BlmtConfig
Auto Trait Implementations§
impl Freeze for BlmtConfig
impl RefUnwindSafe for BlmtConfig
impl Send for BlmtConfig
impl Sync for BlmtConfig
impl Unpin for BlmtConfig
impl UnwindSafe for BlmtConfig
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