#[non_exhaustive]pub struct MappingRuleFilter {
pub parent_entity: String,
pub entity_name_prefix: String,
pub entity_name_suffix: String,
pub entity_name_contains: String,
pub entities: Vec<String>,
/* private fields */
}Expand description
A filter defining the entities that a mapping rule should be applied to. When more than one field is specified, the rule is applied only to entities which match all the fields.
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.parent_entity: StringOptional. The rule should be applied to entities whose parent entity (fully qualified name) matches the given value. For example, if the rule applies to a table entity, the expected value should be a schema (schema). If the rule applies to a column or index entity, the expected value can be either a schema (schema) or a table (schema.table)
entity_name_prefix: StringOptional. The rule should be applied to entities whose non-qualified name starts with the given prefix.
entity_name_suffix: StringOptional. The rule should be applied to entities whose non-qualified name ends with the given suffix.
entity_name_contains: StringOptional. The rule should be applied to entities whose non-qualified name contains the given string.
entities: Vec<String>Optional. The rule should be applied to specific entities defined by their fully qualified names.
Implementations§
Source§impl MappingRuleFilter
impl MappingRuleFilter
pub fn new() -> Self
Sourcepub fn set_parent_entity<T: Into<String>>(self, v: T) -> Self
pub fn set_parent_entity<T: Into<String>>(self, v: T) -> Self
Sets the value of parent_entity.
Sourcepub fn set_entity_name_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_name_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_name_prefix.
Sourcepub fn set_entity_name_suffix<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_name_suffix<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_name_suffix.
Sourcepub fn set_entity_name_contains<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_name_contains<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_name_contains.
Sourcepub fn set_entities<T, V>(self, v: T) -> Self
pub fn set_entities<T, V>(self, v: T) -> Self
Sets the value of entities.
Trait Implementations§
Source§impl Clone for MappingRuleFilter
impl Clone for MappingRuleFilter
Source§fn clone(&self) -> MappingRuleFilter
fn clone(&self) -> MappingRuleFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more