Struct UniqueConstraint
pub struct UniqueConstraint {
pub name: Option<Ident>,
pub index_name: Option<Ident>,
pub index_type_display: KeyOrIndexDisplay,
pub index_type: Option<IndexType>,
pub columns: Vec<IndexColumn>,
pub index_options: Vec<IndexOption>,
pub characteristics: Option<ConstraintCharacteristics>,
pub nulls_distinct: NullsDistinctOption,
}Expand description
Unique constraint definition.
Constraint name.
Can be not the same as index_name
Index name
Whether the type is followed by the keyword KEY, INDEX, or no keyword at all.
Optional USING of index type statement before columns.
columns: Vec<IndexColumn>Identifiers of the columns that are unique.
Optional index options such as USING.
Optional characteristics like DEFERRABLE.
Optional Postgres nulls handling: [ NULLS [ NOT ] DISTINCT ]