pub enum ConstraintType {
Show 17 variants
NotNull,
Null,
PrimaryKey,
Unique,
Default,
AutoIncrement,
Collate,
Comment,
References,
Check,
GeneratedAsIdentity,
Tags,
ComputedColumn,
GeneratedAsRow,
OnUpdate,
Path,
Encode,
}Expand description
Type of column constraint for tracking order
Variants§
NotNull
Null
PrimaryKey
Unique
Default
AutoIncrement
Collate
Comment
References
Check
GeneratedAsIdentity
Tags
Snowflake: TAG (key=‘value’, …)
ComputedColumn
Computed/generated column
GeneratedAsRow
TSQL temporal: GENERATED ALWAYS AS ROW START|END
OnUpdate
MySQL: ON UPDATE expression
Path
PATH constraint for XMLTABLE/JSON_TABLE columns
Encode
Redshift: ENCODE encoding_type
Trait Implementations§
Source§impl Clone for ConstraintType
impl Clone for ConstraintType
Source§fn clone(&self) -> ConstraintType
fn clone(&self) -> ConstraintType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstraintType
impl Debug for ConstraintType
Source§impl<'de> Deserialize<'de> for ConstraintType
impl<'de> Deserialize<'de> for ConstraintType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConstraintType
impl PartialEq for ConstraintType
Source§impl Serialize for ConstraintType
impl Serialize for ConstraintType
impl StructuralPartialEq for ConstraintType
Auto Trait Implementations§
impl Freeze for ConstraintType
impl RefUnwindSafe for ConstraintType
impl Send for ConstraintType
impl Sync for ConstraintType
impl Unpin for ConstraintType
impl UnwindSafe for ConstraintType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more