pub enum ColumnRelationAction {
Restrict,
Cascade,
SetNull,
SetDefault,
NoAction,
}Expand description
The action that should be performed when a referenced row is deleted or updated.
Variants§
Restrict
The default action. The database will not allow the deletion or update of the referenced row.
Cascade
The database will delete or update the row from the table if that row is deleted or updated from the parent table.
SetNull
The database will set the foreign key column or columns in the referencing row to NULL if that row is deleted or updated from the parent table.
SetDefault
The database will set the foreign key column or columns in the referencing row to the default value if that row is deleted or updated from the parent table.
NoAction
Just ignore and do nothing
Trait Implementations§
Source§impl Clone for ColumnRelationAction
impl Clone for ColumnRelationAction
Source§fn clone(&self) -> ColumnRelationAction
fn clone(&self) -> ColumnRelationAction
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 ColumnRelationAction
impl Debug for ColumnRelationAction
Source§impl IntoSqlite for ColumnRelationAction
impl IntoSqlite for ColumnRelationAction
fn into_sqlite(&self) -> String
Source§impl PartialEq for ColumnRelationAction
impl PartialEq for ColumnRelationAction
impl Copy for ColumnRelationAction
impl Eq for ColumnRelationAction
impl StructuralPartialEq for ColumnRelationAction
Auto Trait Implementations§
impl Freeze for ColumnRelationAction
impl RefUnwindSafe for ColumnRelationAction
impl Send for ColumnRelationAction
impl Sync for ColumnRelationAction
impl Unpin for ColumnRelationAction
impl UnwindSafe for ColumnRelationAction
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