pub struct ForeignKeyDef {
pub local_column: &'static str,
pub foreign_table: &'static str,
pub foreign_column: &'static str,
}Expand description
Defines a foreign key relationship for a column.
Fields§
§local_column: &'static strName of the local column that holds the foreign key (es: “user_id”)
foreign_table: &'static strName of the foreign table (e.g., “users”)
foreign_column: &'static strName of the foreign column that the FK points to (e.g., “id”)
Trait Implementations§
Source§impl Clone for ForeignKeyDef
impl Clone for ForeignKeyDef
Source§fn clone(&self) -> ForeignKeyDef
fn clone(&self) -> ForeignKeyDef
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 ForeignKeyDef
impl Debug for ForeignKeyDef
Source§impl PartialEq for ForeignKeyDef
impl PartialEq for ForeignKeyDef
impl Copy for ForeignKeyDef
impl Eq for ForeignKeyDef
impl StructuralPartialEq for ForeignKeyDef
Auto Trait Implementations§
impl Freeze for ForeignKeyDef
impl RefUnwindSafe for ForeignKeyDef
impl Send for ForeignKeyDef
impl Sync for ForeignKeyDef
impl Unpin for ForeignKeyDef
impl UnwindSafe for ForeignKeyDef
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