pub struct ForeignKeyDef { /* private fields */ }Implementations§
Source§impl ForeignKeyDef
impl ForeignKeyDef
pub fn new( local_columns: Vec<String>, remote_table: impl Into<String>, remote_columns: Vec<String>, ) -> Self
pub fn named(self, name: impl Into<String>) -> Self
pub fn on_delete(self, action: ForeignKeyAction) -> Self
pub fn on_update(self, action: ForeignKeyAction) -> Self
pub fn with_timing(self, timing: ConstraintTiming) -> Self
pub fn with_match(self, match_type: ForeignKeyMatch) -> Self
pub fn validated(self, validated: bool) -> Self
pub fn not_validated(self) -> Self
pub fn name(&self) -> Option<&str>
pub fn local_columns(&self) -> &[String]
pub fn remote_table(&self) -> &str
pub fn remote_columns(&self) -> &[String]
pub fn on_delete_action(&self) -> Option<&ForeignKeyAction>
pub fn on_update_action(&self) -> Option<&ForeignKeyAction>
pub fn timing(&self) -> &ConstraintTiming
pub fn match_type(&self) -> Option<&ForeignKeyMatch>
pub fn is_validated(&self) -> bool
Trait Implementations§
Source§impl Clone for ForeignKeyDef
impl Clone for ForeignKeyDef
Source§impl Debug for ForeignKeyDef
impl Debug for ForeignKeyDef
impl Eq for ForeignKeyDef
Source§impl PartialEq for ForeignKeyDef
impl PartialEq 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 UnsafeUnpin 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