pub struct SnapshotForeignKey {
pub name: String,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
pub on_delete: Option<String>,
}Expand description
A composite foreign key in a model snapshot.
Fields§
§name: StringExplicit or derived constraint name.
columns: Vec<String>Dependent columns.
referenced_table: StringPrincipal table.
referenced_columns: Vec<String>Principal columns.
on_delete: Option<String>ON DELETE clause.
Trait Implementations§
Source§impl Clone for SnapshotForeignKey
impl Clone for SnapshotForeignKey
Source§impl Debug for SnapshotForeignKey
impl Debug for SnapshotForeignKey
Source§impl Default for SnapshotForeignKey
impl Default for SnapshotForeignKey
impl Eq for SnapshotForeignKey
Source§impl PartialEq for SnapshotForeignKey
impl PartialEq for SnapshotForeignKey
impl StructuralPartialEq for SnapshotForeignKey
Auto Trait Implementations§
impl Forget for SnapshotForeignKey
impl Freeze for SnapshotForeignKey
impl Move for SnapshotForeignKey
impl RefUnwindSafe for SnapshotForeignKey
impl Send for SnapshotForeignKey
impl Sync for SnapshotForeignKey
impl Unpin for SnapshotForeignKey
impl UnsafeUnpin for SnapshotForeignKey
impl UnwindSafe for SnapshotForeignKey
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