pub struct AddForeignKeyOp {
pub table: String,
pub name: Option<String>,
pub columns: Vec<String>,
pub references_table: String,
pub references_columns: Vec<String>,
pub on_delete: Option<ForeignKeyAction>,
pub on_update: Option<ForeignKeyAction>,
}Expand description
Add foreign key operation.
Fields§
§table: StringTable name.
name: Option<String>Optional constraint name.
columns: Vec<String>Columns in this table.
references_table: StringReferenced table.
references_columns: Vec<String>Referenced columns.
on_delete: Option<ForeignKeyAction>ON DELETE action.
on_update: Option<ForeignKeyAction>ON UPDATE action.
Trait Implementations§
Source§impl Clone for AddForeignKeyOp
impl Clone for AddForeignKeyOp
Source§fn clone(&self) -> AddForeignKeyOp
fn clone(&self) -> AddForeignKeyOp
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 AddForeignKeyOp
impl Debug for AddForeignKeyOp
Source§impl From<AddForeignKeyOp> for Operation
impl From<AddForeignKeyOp> for Operation
Source§fn from(op: AddForeignKeyOp) -> Self
fn from(op: AddForeignKeyOp) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddForeignKeyOp
impl PartialEq for AddForeignKeyOp
impl Eq for AddForeignKeyOp
impl StructuralPartialEq for AddForeignKeyOp
Auto Trait Implementations§
impl Freeze for AddForeignKeyOp
impl RefUnwindSafe for AddForeignKeyOp
impl Send for AddForeignKeyOp
impl Sync for AddForeignKeyOp
impl Unpin for AddForeignKeyOp
impl UnwindSafe for AddForeignKeyOp
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