Struct google_datamigration1::api::ConstraintEntity
source · pub struct ConstraintEntity {
pub custom_features: Option<HashMap<String, Value>>,
pub name: Option<String>,
pub reference_columns: Option<Vec<String>>,
pub reference_table: Option<String>,
pub table_columns: Option<Vec<String>>,
pub table_name: Option<String>,
pub type_: Option<String>,
}
Expand description
Constraint is not used as an independent entity, it is retrieved as part of another entity such as Table or View.
This type is not used in any activity, and only used as part of another schema.
Fields§
§custom_features: Option<HashMap<String, Value>>
Custom engine specific features
name: Option<String>
The name of the table constraint
reference_columns: Option<Vec<String>>
Reference Columns which may be associated with the constraint. eg: if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.
reference_table: Option<String>
Reference table which may be associated with the constraint. eg: if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.
table_columns: Option<Vec<String>>
Table columns used as part of the Constraint for e.g. primary key constraint should list the columns which constitutes the key
table_name: Option<String>
Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined.
type_: Option<String>
Type of constraint - e.g. unique, primary key, foreign key (currently only primary key is supported)
Trait Implementations§
source§impl Clone for ConstraintEntity
impl Clone for ConstraintEntity
source§fn clone(&self) -> ConstraintEntity
fn clone(&self) -> ConstraintEntity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more