#[non_exhaustive]pub struct Dialect {
pub dialect_value: Option<DialectValue>,
/* private fields */
}Expand description
The possible dialect options for translation.
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.dialect_value: Option<DialectValue>The possible dialect options that this message represents.
Implementations§
Source§impl Dialect
impl Dialect
pub fn new() -> Self
Sourcepub fn set_dialect_value<T: Into<Option<DialectValue>>>(self, v: T) -> Self
pub fn set_dialect_value<T: Into<Option<DialectValue>>>(self, v: T) -> Self
Sets the value of dialect_value.
Note that all the setters affecting dialect_value are mutually
exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::BigQueryDialect;
let x = Dialect::new().set_dialect_value(Some(
google_cloud_bigquery_migration_v2::model::dialect::DialectValue::BigqueryDialect(BigQueryDialect::default().into())));Sourcepub fn bigquery_dialect(&self) -> Option<&Box<BigQueryDialect>>
pub fn bigquery_dialect(&self) -> Option<&Box<BigQueryDialect>>
The value of dialect_value
if it holds a BigqueryDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_bigquery_dialect<T: Into<Box<BigQueryDialect>>>(self, v: T) -> Self
pub fn set_bigquery_dialect<T: Into<Box<BigQueryDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a BigqueryDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::BigQueryDialect;
let x = Dialect::new().set_bigquery_dialect(BigQueryDialect::default()/* use setters */);
assert!(x.bigquery_dialect().is_some());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn hiveql_dialect(&self) -> Option<&Box<HiveQLDialect>>
pub fn hiveql_dialect(&self) -> Option<&Box<HiveQLDialect>>
The value of dialect_value
if it holds a HiveqlDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_hiveql_dialect<T: Into<Box<HiveQLDialect>>>(self, v: T) -> Self
pub fn set_hiveql_dialect<T: Into<Box<HiveQLDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a HiveqlDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::HiveQLDialect;
let x = Dialect::new().set_hiveql_dialect(HiveQLDialect::default()/* use setters */);
assert!(x.hiveql_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn redshift_dialect(&self) -> Option<&Box<RedshiftDialect>>
pub fn redshift_dialect(&self) -> Option<&Box<RedshiftDialect>>
The value of dialect_value
if it holds a RedshiftDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_redshift_dialect<T: Into<Box<RedshiftDialect>>>(self, v: T) -> Self
pub fn set_redshift_dialect<T: Into<Box<RedshiftDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a RedshiftDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::RedshiftDialect;
let x = Dialect::new().set_redshift_dialect(RedshiftDialect::default()/* use setters */);
assert!(x.redshift_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn teradata_dialect(&self) -> Option<&Box<TeradataDialect>>
pub fn teradata_dialect(&self) -> Option<&Box<TeradataDialect>>
The value of dialect_value
if it holds a TeradataDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_teradata_dialect<T: Into<Box<TeradataDialect>>>(self, v: T) -> Self
pub fn set_teradata_dialect<T: Into<Box<TeradataDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a TeradataDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::TeradataDialect;
let x = Dialect::new().set_teradata_dialect(TeradataDialect::default()/* use setters */);
assert!(x.teradata_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn oracle_dialect(&self) -> Option<&Box<OracleDialect>>
pub fn oracle_dialect(&self) -> Option<&Box<OracleDialect>>
The value of dialect_value
if it holds a OracleDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_oracle_dialect<T: Into<Box<OracleDialect>>>(self, v: T) -> Self
pub fn set_oracle_dialect<T: Into<Box<OracleDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a OracleDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::OracleDialect;
let x = Dialect::new().set_oracle_dialect(OracleDialect::default()/* use setters */);
assert!(x.oracle_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn sparksql_dialect(&self) -> Option<&Box<SparkSQLDialect>>
pub fn sparksql_dialect(&self) -> Option<&Box<SparkSQLDialect>>
The value of dialect_value
if it holds a SparksqlDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_sparksql_dialect<T: Into<Box<SparkSQLDialect>>>(self, v: T) -> Self
pub fn set_sparksql_dialect<T: Into<Box<SparkSQLDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a SparksqlDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::SparkSQLDialect;
let x = Dialect::new().set_sparksql_dialect(SparkSQLDialect::default()/* use setters */);
assert!(x.sparksql_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn snowflake_dialect(&self) -> Option<&Box<SnowflakeDialect>>
pub fn snowflake_dialect(&self) -> Option<&Box<SnowflakeDialect>>
The value of dialect_value
if it holds a SnowflakeDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_snowflake_dialect<T: Into<Box<SnowflakeDialect>>>(self, v: T) -> Self
pub fn set_snowflake_dialect<T: Into<Box<SnowflakeDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a SnowflakeDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::SnowflakeDialect;
let x = Dialect::new().set_snowflake_dialect(SnowflakeDialect::default()/* use setters */);
assert!(x.snowflake_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn netezza_dialect(&self) -> Option<&Box<NetezzaDialect>>
pub fn netezza_dialect(&self) -> Option<&Box<NetezzaDialect>>
The value of dialect_value
if it holds a NetezzaDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_netezza_dialect<T: Into<Box<NetezzaDialect>>>(self, v: T) -> Self
pub fn set_netezza_dialect<T: Into<Box<NetezzaDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a NetezzaDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::NetezzaDialect;
let x = Dialect::new().set_netezza_dialect(NetezzaDialect::default()/* use setters */);
assert!(x.netezza_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn azure_synapse_dialect(&self) -> Option<&Box<AzureSynapseDialect>>
pub fn azure_synapse_dialect(&self) -> Option<&Box<AzureSynapseDialect>>
The value of dialect_value
if it holds a AzureSynapseDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_azure_synapse_dialect<T: Into<Box<AzureSynapseDialect>>>(
self,
v: T,
) -> Self
pub fn set_azure_synapse_dialect<T: Into<Box<AzureSynapseDialect>>>( self, v: T, ) -> Self
Sets the value of dialect_value
to hold a AzureSynapseDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::AzureSynapseDialect;
let x = Dialect::new().set_azure_synapse_dialect(AzureSynapseDialect::default()/* use setters */);
assert!(x.azure_synapse_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn vertica_dialect(&self) -> Option<&Box<VerticaDialect>>
pub fn vertica_dialect(&self) -> Option<&Box<VerticaDialect>>
The value of dialect_value
if it holds a VerticaDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_vertica_dialect<T: Into<Box<VerticaDialect>>>(self, v: T) -> Self
pub fn set_vertica_dialect<T: Into<Box<VerticaDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a VerticaDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::VerticaDialect;
let x = Dialect::new().set_vertica_dialect(VerticaDialect::default()/* use setters */);
assert!(x.vertica_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn sql_server_dialect(&self) -> Option<&Box<SQLServerDialect>>
pub fn sql_server_dialect(&self) -> Option<&Box<SQLServerDialect>>
The value of dialect_value
if it holds a SqlServerDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_sql_server_dialect<T: Into<Box<SQLServerDialect>>>(
self,
v: T,
) -> Self
pub fn set_sql_server_dialect<T: Into<Box<SQLServerDialect>>>( self, v: T, ) -> Self
Sets the value of dialect_value
to hold a SqlServerDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::SQLServerDialect;
let x = Dialect::new().set_sql_server_dialect(SQLServerDialect::default()/* use setters */);
assert!(x.sql_server_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn postgresql_dialect(&self) -> Option<&Box<PostgresqlDialect>>
pub fn postgresql_dialect(&self) -> Option<&Box<PostgresqlDialect>>
The value of dialect_value
if it holds a PostgresqlDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_postgresql_dialect<T: Into<Box<PostgresqlDialect>>>(
self,
v: T,
) -> Self
pub fn set_postgresql_dialect<T: Into<Box<PostgresqlDialect>>>( self, v: T, ) -> Self
Sets the value of dialect_value
to hold a PostgresqlDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::PostgresqlDialect;
let x = Dialect::new().set_postgresql_dialect(PostgresqlDialect::default()/* use setters */);
assert!(x.postgresql_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn presto_dialect(&self) -> Option<&Box<PrestoDialect>>
pub fn presto_dialect(&self) -> Option<&Box<PrestoDialect>>
The value of dialect_value
if it holds a PrestoDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_presto_dialect<T: Into<Box<PrestoDialect>>>(self, v: T) -> Self
pub fn set_presto_dialect<T: Into<Box<PrestoDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a PrestoDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::PrestoDialect;
let x = Dialect::new().set_presto_dialect(PrestoDialect::default()/* use setters */);
assert!(x.presto_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn mysql_dialect(&self) -> Option<&Box<MySQLDialect>>
pub fn mysql_dialect(&self) -> Option<&Box<MySQLDialect>>
The value of dialect_value
if it holds a MysqlDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_mysql_dialect<T: Into<Box<MySQLDialect>>>(self, v: T) -> Self
pub fn set_mysql_dialect<T: Into<Box<MySQLDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a MysqlDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::MySQLDialect;
let x = Dialect::new().set_mysql_dialect(MySQLDialect::default()/* use setters */);
assert!(x.mysql_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn db2_dialect(&self) -> Option<&Box<DB2Dialect>>
pub fn db2_dialect(&self) -> Option<&Box<DB2Dialect>>
The value of dialect_value
if it holds a Db2Dialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_db2_dialect<T: Into<Box<DB2Dialect>>>(self, v: T) -> Self
pub fn set_db2_dialect<T: Into<Box<DB2Dialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a Db2Dialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::DB2Dialect;
let x = Dialect::new().set_db2_dialect(DB2Dialect::default()/* use setters */);
assert!(x.db2_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.sqlite_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn sqlite_dialect(&self) -> Option<&Box<SQLiteDialect>>
pub fn sqlite_dialect(&self) -> Option<&Box<SQLiteDialect>>
The value of dialect_value
if it holds a SqliteDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_sqlite_dialect<T: Into<Box<SQLiteDialect>>>(self, v: T) -> Self
pub fn set_sqlite_dialect<T: Into<Box<SQLiteDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a SqliteDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::SQLiteDialect;
let x = Dialect::new().set_sqlite_dialect(SQLiteDialect::default()/* use setters */);
assert!(x.sqlite_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.greenplum_dialect().is_none());Sourcepub fn greenplum_dialect(&self) -> Option<&Box<GreenplumDialect>>
pub fn greenplum_dialect(&self) -> Option<&Box<GreenplumDialect>>
The value of dialect_value
if it holds a GreenplumDialect, None if the field is not set or
holds a different branch.
Sourcepub fn set_greenplum_dialect<T: Into<Box<GreenplumDialect>>>(self, v: T) -> Self
pub fn set_greenplum_dialect<T: Into<Box<GreenplumDialect>>>(self, v: T) -> Self
Sets the value of dialect_value
to hold a GreenplumDialect.
Note that all the setters affecting dialect_value are
mutually exclusive.
§Example
use google_cloud_bigquery_migration_v2::model::GreenplumDialect;
let x = Dialect::new().set_greenplum_dialect(GreenplumDialect::default()/* use setters */);
assert!(x.greenplum_dialect().is_some());
assert!(x.bigquery_dialect().is_none());
assert!(x.hiveql_dialect().is_none());
assert!(x.redshift_dialect().is_none());
assert!(x.teradata_dialect().is_none());
assert!(x.oracle_dialect().is_none());
assert!(x.sparksql_dialect().is_none());
assert!(x.snowflake_dialect().is_none());
assert!(x.netezza_dialect().is_none());
assert!(x.azure_synapse_dialect().is_none());
assert!(x.vertica_dialect().is_none());
assert!(x.sql_server_dialect().is_none());
assert!(x.postgresql_dialect().is_none());
assert!(x.presto_dialect().is_none());
assert!(x.mysql_dialect().is_none());
assert!(x.db2_dialect().is_none());
assert!(x.sqlite_dialect().is_none());