pub struct DeferredForeignKey {
pub table: String,
pub column: String,
}Expand description
A foreign key whose definition is resolved from the current schema state.
Fields§
§table: String§column: StringImplementations§
Source§impl DeferredForeignKey
impl DeferredForeignKey
pub fn statement(&self, state: &ProjectState) -> Result<String, MigrationError>
Trait Implementations§
Source§impl Clone for DeferredForeignKey
impl Clone for DeferredForeignKey
Source§impl Debug for DeferredForeignKey
impl Debug for DeferredForeignKey
impl Eq for DeferredForeignKey
Source§impl PartialEq for DeferredForeignKey
impl PartialEq for DeferredForeignKey
impl StructuralPartialEq for DeferredForeignKey
Auto Trait Implementations§
impl Forget for DeferredForeignKey
impl Freeze for DeferredForeignKey
impl Move for DeferredForeignKey
impl RefUnwindSafe for DeferredForeignKey
impl Send for DeferredForeignKey
impl Sync for DeferredForeignKey
impl Unpin for DeferredForeignKey
impl UnsafeUnpin for DeferredForeignKey
impl UnwindSafe for DeferredForeignKey
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