#[non_exhaustive]pub struct SqlExportOptions {
pub tables: Vec<String>,
pub schema_only: Option<BoolValue>,
pub mysql_export_options: Option<MysqlExportOptions>,
pub threads: Option<Int32Value>,
pub parallel: Option<BoolValue>,
pub postgres_export_options: Option<PostgresExportOptions>,
/* 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.tables: Vec<String>Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
schema_only: Option<BoolValue>Export only schemas.
mysql_export_options: Option<MysqlExportOptions>§threads: Option<Int32Value>Optional. The number of threads to use for parallel export.
parallel: Option<BoolValue>Optional. Whether or not the export should be parallel.
postgres_export_options: Option<PostgresExportOptions>Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.
Implementations§
Source§impl SqlExportOptions
impl SqlExportOptions
pub fn new() -> Self
Sourcepub fn set_tables<T, V>(self, v: T) -> Self
pub fn set_tables<T, V>(self, v: T) -> Self
Sets the value of tables.
Sourcepub fn set_schema_only<T: Into<Option<BoolValue>>>(self, v: T) -> Self
pub fn set_schema_only<T: Into<Option<BoolValue>>>(self, v: T) -> Self
Sets the value of schema_only.
Sourcepub fn set_mysql_export_options<T: Into<Option<MysqlExportOptions>>>(
self,
v: T,
) -> Self
pub fn set_mysql_export_options<T: Into<Option<MysqlExportOptions>>>( self, v: T, ) -> Self
Sets the value of mysql_export_options.
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_export_options<T: Into<Option<PostgresExportOptions>>>(
self,
v: T,
) -> Self
pub fn set_postgres_export_options<T: Into<Option<PostgresExportOptions>>>( self, v: T, ) -> Self
Sets the value of postgres_export_options.
Trait Implementations§
Source§impl Clone for SqlExportOptions
impl Clone for SqlExportOptions
Source§fn clone(&self) -> SqlExportOptions
fn clone(&self) -> SqlExportOptions
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 SqlExportOptions
impl Debug for SqlExportOptions
Source§impl Default for SqlExportOptions
impl Default for SqlExportOptions
Source§fn default() -> SqlExportOptions
fn default() -> SqlExportOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SqlExportOptionswhere
SqlExportOptions: Default,
impl<'de> Deserialize<'de> for SqlExportOptionswhere
SqlExportOptions: 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 SqlExportOptions
impl Message for SqlExportOptions
Source§impl PartialEq for SqlExportOptions
impl PartialEq for SqlExportOptions
Source§impl Serialize for SqlExportOptions
impl Serialize for SqlExportOptions
impl StructuralPartialEq for SqlExportOptions
Auto Trait Implementations§
impl Freeze for SqlExportOptions
impl RefUnwindSafe for SqlExportOptions
impl Send for SqlExportOptions
impl Sync for SqlExportOptions
impl Unpin for SqlExportOptions
impl UnwindSafe for SqlExportOptions
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