#[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: Into<Option<Int32Value>>>(self, v: T) -> Self
pub fn set_threads<T: Into<Option<Int32Value>>>(self, v: T) -> Self
Sets the value of threads.
Sourcepub fn set_parallel<T: Into<Option<BoolValue>>>(self, v: T) -> Self
pub fn set_parallel<T: Into<Option<BoolValue>>>(self, v: T) -> Self
Sets the value of parallel.
Sourcepub fn set_postgres_import_options<T: Into<Option<PostgresImportOptions>>>(
self,
v: T,
) -> Self
pub fn set_postgres_import_options<T: Into<Option<PostgresImportOptions>>>( self, v: T, ) -> Self
Sets 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 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 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<'de> Deserialize<'de> for SqlImportOptionswhere
SqlImportOptions: Default,
impl<'de> Deserialize<'de> for SqlImportOptionswhere
SqlImportOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for SqlImportOptions
impl Message for SqlImportOptions
Source§impl PartialEq for SqlImportOptions
impl PartialEq for SqlImportOptions
Source§impl Serialize for SqlImportOptions
impl Serialize 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