pub enum TableConstraint {
CheckConstraint(CheckConstraint),
ExcludeConstraint(ExcludeConstraint),
ForeignKeyConstraint(ForeignKeyConstraint),
PrimaryKeyConstraint(PrimaryKeyConstraint),
UniqueConstraint(UniqueConstraint),
}
Variants§
CheckConstraint(CheckConstraint)
ExcludeConstraint(ExcludeConstraint)
ForeignKeyConstraint(ForeignKeyConstraint)
PrimaryKeyConstraint(PrimaryKeyConstraint)
UniqueConstraint(UniqueConstraint)
Trait Implementations§
Source§impl AstNode for TableConstraint
impl AstNode for TableConstraint
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for TableConstraint
impl Clone for TableConstraint
Source§fn clone(&self) -> TableConstraint
fn clone(&self) -> TableConstraint
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 TableConstraint
impl Debug for TableConstraint
Source§impl From<CheckConstraint> for TableConstraint
impl From<CheckConstraint> for TableConstraint
Source§fn from(node: CheckConstraint) -> TableConstraint
fn from(node: CheckConstraint) -> TableConstraint
Converts to this type from the input type.
Source§impl From<ExcludeConstraint> for TableConstraint
impl From<ExcludeConstraint> for TableConstraint
Source§fn from(node: ExcludeConstraint) -> TableConstraint
fn from(node: ExcludeConstraint) -> TableConstraint
Converts to this type from the input type.
Source§impl From<ForeignKeyConstraint> for TableConstraint
impl From<ForeignKeyConstraint> for TableConstraint
Source§fn from(node: ForeignKeyConstraint) -> TableConstraint
fn from(node: ForeignKeyConstraint) -> TableConstraint
Converts to this type from the input type.
Source§impl From<PrimaryKeyConstraint> for TableConstraint
impl From<PrimaryKeyConstraint> for TableConstraint
Source§fn from(node: PrimaryKeyConstraint) -> TableConstraint
fn from(node: PrimaryKeyConstraint) -> TableConstraint
Converts to this type from the input type.
Source§impl From<UniqueConstraint> for TableConstraint
impl From<UniqueConstraint> for TableConstraint
Source§fn from(node: UniqueConstraint) -> TableConstraint
fn from(node: UniqueConstraint) -> TableConstraint
Converts to this type from the input type.
Source§impl Hash for TableConstraint
impl Hash for TableConstraint
Source§impl PartialEq for TableConstraint
impl PartialEq for TableConstraint
impl Eq for TableConstraint
impl StructuralPartialEq for TableConstraint
Auto Trait Implementations§
impl Freeze for TableConstraint
impl !RefUnwindSafe for TableConstraint
impl !Send for TableConstraint
impl !Sync for TableConstraint
impl Unpin for TableConstraint
impl !UnwindSafe for TableConstraint
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