#[non_exhaustive]pub struct MappingRule {
pub name: String,
pub display_name: String,
pub state: State,
pub rule_scope: DatabaseEntityType,
pub filter: Option<MappingRuleFilter>,
pub rule_order: i64,
pub revision_id: String,
pub revision_create_time: Option<Timestamp>,
pub details: Option<Details>,
/* private fields */
}Expand description
Definition of a transformation that is to be applied to a group of entities in the source schema. Several such transformations can be applied to an entity sequentially to define the corresponding entity in the target schema.
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.name: StringFull name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
display_name: StringOptional. A human readable name
state: StateOptional. The mapping rule state
rule_scope: DatabaseEntityTypeRequired. The rule scope
filter: Option<MappingRuleFilter>Required. The rule filter
rule_order: i64Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden.
revision_id: StringOutput only. The revision ID of the mapping rule. A new revision is committed whenever the mapping rule is changed in any way. The format is an 8-character hexadecimal string.
revision_create_time: Option<Timestamp>Output only. The timestamp that the revision was created.
details: Option<Details>The rule specific details.
Implementations§
Source§impl MappingRule
impl MappingRule
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_rule_scope<T: Into<DatabaseEntityType>>(self, v: T) -> Self
pub fn set_rule_scope<T: Into<DatabaseEntityType>>(self, v: T) -> Self
Sets the value of rule_scope.
Sourcepub fn set_filter<T>(self, v: T) -> Selfwhere
T: Into<MappingRuleFilter>,
pub fn set_filter<T>(self, v: T) -> Selfwhere
T: Into<MappingRuleFilter>,
Sets the value of filter.
Sourcepub fn set_or_clear_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<MappingRuleFilter>,
pub fn set_or_clear_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<MappingRuleFilter>,
Sets or clears the value of filter.
Sourcepub fn set_rule_order<T: Into<i64>>(self, v: T) -> Self
pub fn set_rule_order<T: Into<i64>>(self, v: T) -> Self
Sets the value of rule_order.
Sourcepub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
pub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
Sets the value of revision_id.
Sourcepub fn set_revision_create_time<T>(self, v: T) -> Self
pub fn set_revision_create_time<T>(self, v: T) -> Self
Sets the value of revision_create_time.
Sourcepub fn set_or_clear_revision_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_revision_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of revision_create_time.
Sourcepub fn set_details<T: Into<Option<Details>>>(self, v: T) -> Self
pub fn set_details<T: Into<Option<Details>>>(self, v: T) -> Self
Sets the value of details.
Note that all the setters affecting details are mutually
exclusive.
Sourcepub fn single_entity_rename(&self) -> Option<&Box<SingleEntityRename>>
pub fn single_entity_rename(&self) -> Option<&Box<SingleEntityRename>>
The value of details
if it holds a SingleEntityRename, None if the field is not set or
holds a different branch.
Sourcepub fn set_single_entity_rename<T: Into<Box<SingleEntityRename>>>(
self,
v: T,
) -> Self
pub fn set_single_entity_rename<T: Into<Box<SingleEntityRename>>>( self, v: T, ) -> Self
Sets the value of details
to hold a SingleEntityRename.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn multi_entity_rename(&self) -> Option<&Box<MultiEntityRename>>
pub fn multi_entity_rename(&self) -> Option<&Box<MultiEntityRename>>
The value of details
if it holds a MultiEntityRename, None if the field is not set or
holds a different branch.
Sourcepub fn set_multi_entity_rename<T: Into<Box<MultiEntityRename>>>(
self,
v: T,
) -> Self
pub fn set_multi_entity_rename<T: Into<Box<MultiEntityRename>>>( self, v: T, ) -> Self
Sets the value of details
to hold a MultiEntityRename.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn entity_move(&self) -> Option<&Box<EntityMove>>
pub fn entity_move(&self) -> Option<&Box<EntityMove>>
The value of details
if it holds a EntityMove, None if the field is not set or
holds a different branch.
Sourcepub fn set_entity_move<T: Into<Box<EntityMove>>>(self, v: T) -> Self
pub fn set_entity_move<T: Into<Box<EntityMove>>>(self, v: T) -> Self
Sets the value of details
to hold a EntityMove.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn single_column_change(&self) -> Option<&Box<SingleColumnChange>>
pub fn single_column_change(&self) -> Option<&Box<SingleColumnChange>>
The value of details
if it holds a SingleColumnChange, None if the field is not set or
holds a different branch.
Sourcepub fn set_single_column_change<T: Into<Box<SingleColumnChange>>>(
self,
v: T,
) -> Self
pub fn set_single_column_change<T: Into<Box<SingleColumnChange>>>( self, v: T, ) -> Self
Sets the value of details
to hold a SingleColumnChange.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn multi_column_data_type_change(
&self,
) -> Option<&Box<MultiColumnDatatypeChange>>
pub fn multi_column_data_type_change( &self, ) -> Option<&Box<MultiColumnDatatypeChange>>
The value of details
if it holds a MultiColumnDataTypeChange, None if the field is not set or
holds a different branch.
Sourcepub fn set_multi_column_data_type_change<T: Into<Box<MultiColumnDatatypeChange>>>(
self,
v: T,
) -> Self
pub fn set_multi_column_data_type_change<T: Into<Box<MultiColumnDatatypeChange>>>( self, v: T, ) -> Self
Sets the value of details
to hold a MultiColumnDataTypeChange.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn conditional_column_set_value(
&self,
) -> Option<&Box<ConditionalColumnSetValue>>
pub fn conditional_column_set_value( &self, ) -> Option<&Box<ConditionalColumnSetValue>>
The value of details
if it holds a ConditionalColumnSetValue, None if the field is not set or
holds a different branch.
Sourcepub fn set_conditional_column_set_value<T: Into<Box<ConditionalColumnSetValue>>>(
self,
v: T,
) -> Self
pub fn set_conditional_column_set_value<T: Into<Box<ConditionalColumnSetValue>>>( self, v: T, ) -> Self
Sets the value of details
to hold a ConditionalColumnSetValue.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn convert_rowid_column(&self) -> Option<&Box<ConvertRowIdToColumn>>
pub fn convert_rowid_column(&self) -> Option<&Box<ConvertRowIdToColumn>>
The value of details
if it holds a ConvertRowidColumn, None if the field is not set or
holds a different branch.
Sourcepub fn set_convert_rowid_column<T: Into<Box<ConvertRowIdToColumn>>>(
self,
v: T,
) -> Self
pub fn set_convert_rowid_column<T: Into<Box<ConvertRowIdToColumn>>>( self, v: T, ) -> Self
Sets the value of details
to hold a ConvertRowidColumn.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn set_table_primary_key(&self) -> Option<&Box<SetTablePrimaryKey>>
pub fn set_table_primary_key(&self) -> Option<&Box<SetTablePrimaryKey>>
The value of details
if it holds a SetTablePrimaryKey, None if the field is not set or
holds a different branch.
Sourcepub fn set_set_table_primary_key<T: Into<Box<SetTablePrimaryKey>>>(
self,
v: T,
) -> Self
pub fn set_set_table_primary_key<T: Into<Box<SetTablePrimaryKey>>>( self, v: T, ) -> Self
Sets the value of details
to hold a SetTablePrimaryKey.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn single_package_change(&self) -> Option<&Box<SinglePackageChange>>
pub fn single_package_change(&self) -> Option<&Box<SinglePackageChange>>
The value of details
if it holds a SinglePackageChange, None if the field is not set or
holds a different branch.
Sourcepub fn set_single_package_change<T: Into<Box<SinglePackageChange>>>(
self,
v: T,
) -> Self
pub fn set_single_package_change<T: Into<Box<SinglePackageChange>>>( self, v: T, ) -> Self
Sets the value of details
to hold a SinglePackageChange.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn source_sql_change(&self) -> Option<&Box<SourceSqlChange>>
pub fn source_sql_change(&self) -> Option<&Box<SourceSqlChange>>
The value of details
if it holds a SourceSqlChange, None if the field is not set or
holds a different branch.
Sourcepub fn set_source_sql_change<T: Into<Box<SourceSqlChange>>>(self, v: T) -> Self
pub fn set_source_sql_change<T: Into<Box<SourceSqlChange>>>(self, v: T) -> Self
Sets the value of details
to hold a SourceSqlChange.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn filter_table_columns(&self) -> Option<&Box<FilterTableColumns>>
pub fn filter_table_columns(&self) -> Option<&Box<FilterTableColumns>>
The value of details
if it holds a FilterTableColumns, None if the field is not set or
holds a different branch.
Sourcepub fn set_filter_table_columns<T: Into<Box<FilterTableColumns>>>(
self,
v: T,
) -> Self
pub fn set_filter_table_columns<T: Into<Box<FilterTableColumns>>>( self, v: T, ) -> Self
Sets the value of details
to hold a FilterTableColumns.
Note that all the setters affecting details are
mutually exclusive.
Trait Implementations§
Source§impl Clone for MappingRule
impl Clone for MappingRule
Source§fn clone(&self) -> MappingRule
fn clone(&self) -> MappingRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more