pub struct CascadeRule {
pub parent: String,
pub child: String,
pub foreign_key: String,
}Expand description
A cascade rule: when parent is deleted, delete children.
Fields§
§parent: StringParent entity name.
child: StringChild entity name.
foreign_key: StringForeign key field on the child that references the parent.
Trait Implementations§
Source§impl Clone for CascadeRule
impl Clone for CascadeRule
Source§fn clone(&self) -> CascadeRule
fn clone(&self) -> CascadeRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CascadeRule
impl RefUnwindSafe for CascadeRule
impl Send for CascadeRule
impl Sync for CascadeRule
impl Unpin for CascadeRule
impl UnsafeUnpin for CascadeRule
impl UnwindSafe for CascadeRule
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