pub struct ForeignKeyData {
pub name: Option<String>,
pub column: String,
pub foreign_table: String,
pub foreign_column: String,
pub on_delete: Option<String>,
pub on_update: Option<String>,
}Expand description
Simplified foreign key info for rendering.
Fields§
§name: Option<String>Constraint name
column: StringLocal column
foreign_table: StringForeign table
foreign_column: StringForeign column
on_delete: Option<String>ON DELETE action
on_update: Option<String>ON UPDATE action
Trait Implementations§
Source§impl Clone for ForeignKeyData
impl Clone for ForeignKeyData
Source§fn clone(&self) -> ForeignKeyData
fn clone(&self) -> ForeignKeyData
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 moreAuto Trait Implementations§
impl Freeze for ForeignKeyData
impl RefUnwindSafe for ForeignKeyData
impl Send for ForeignKeyData
impl Sync for ForeignKeyData
impl Unpin for ForeignKeyData
impl UnwindSafe for ForeignKeyData
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