pub struct ForeignKey {
pub first: ForeignKeyItem,
pub second: ForeignKeyItem,
pub on_delete: Option<ForeignKeyActions>,
pub on_update: Option<ForeignKeyActions>,
pub constraint: Option<String>,
}
Expand description
Struct that benefits to define a foreign key.
Fields§
§first: ForeignKeyItem
§second: ForeignKeyItem
§on_delete: Option<ForeignKeyActions>
§on_update: Option<ForeignKeyActions>
§constraint: Option<String>
Trait Implementations§
Source§impl Clone for ForeignKey
impl Clone for ForeignKey
Source§fn clone(&self) -> ForeignKey
fn clone(&self) -> ForeignKey
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ForeignKey
impl RefUnwindSafe for ForeignKey
impl Send for ForeignKey
impl Sync for ForeignKey
impl Unpin for ForeignKey
impl UnwindSafe for ForeignKey
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