Dialect

Struct Dialect 

Source
#[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
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.
§dialect_value: Option<DialectValue>

The possible dialect options that this message represents.

Implementations§

Source§

impl Dialect

Source

pub fn new() -> Self

Source

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())));
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());
Source

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.

Source

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());

Trait Implementations§

Source§

impl Clone for Dialect

Source§

fn clone(&self) -> Dialect

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Dialect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Dialect

Source§

fn default() -> Dialect

Returns the “default value” for a type. Read more
Source§

impl Message for Dialect

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for Dialect

Source§

fn eq(&self, other: &Dialect) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Dialect

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,