#[non_exhaustive]pub struct SqlImportOptions {
pub threads: Option<Int32Value>,
pub parallel: Option<BoolValue>,
pub postgres_import_options: Option<PostgresImportOptions>,
/* private fields */
}
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.threads: Option<Int32Value>
Optional. The number of threads to use for parallel import.
parallel: Option<BoolValue>
Optional. Whether or not the import should be parallel.
postgres_import_options: Option<PostgresImportOptions>
Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
Implementations§
Source§impl SqlImportOptions
impl SqlImportOptions
pub fn new() -> Self
Sourcepub fn set_threads<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_threads<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of threads.
Sourcepub fn set_or_clear_threads<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_threads<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of threads.
Sourcepub fn set_parallel<T>(self, v: T) -> Self
pub fn set_parallel<T>(self, v: T) -> Self
Sets the value of parallel.
Sourcepub fn set_or_clear_parallel<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_parallel<T>(self, v: Option<T>) -> Self
Sets or clears the value of parallel.
Sourcepub fn set_postgres_import_options<T>(self, v: T) -> Selfwhere
T: Into<PostgresImportOptions>,
pub fn set_postgres_import_options<T>(self, v: T) -> Selfwhere
T: Into<PostgresImportOptions>,
Sets the value of postgres_import_options.
Sourcepub fn set_or_clear_postgres_import_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresImportOptions>,
pub fn set_or_clear_postgres_import_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresImportOptions>,
Sets or clears the value of postgres_import_options.
Trait Implementations§
Source§impl Clone for SqlImportOptions
impl Clone for SqlImportOptions
Source§fn clone(&self) -> SqlImportOptions
fn clone(&self) -> SqlImportOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SqlImportOptions
impl Debug for SqlImportOptions
Source§impl Default for SqlImportOptions
impl Default for SqlImportOptions
Source§fn default() -> SqlImportOptions
fn default() -> SqlImportOptions
Returns the “default value” for a type. Read more
Source§impl Message for SqlImportOptions
impl Message for SqlImportOptions
Source§impl PartialEq for SqlImportOptions
impl PartialEq for SqlImportOptions
impl StructuralPartialEq for SqlImportOptions
Auto Trait Implementations§
impl Freeze for SqlImportOptions
impl RefUnwindSafe for SqlImportOptions
impl Send for SqlImportOptions
impl Sync for SqlImportOptions
impl Unpin for SqlImportOptions
impl UnwindSafe for SqlImportOptions
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