pub struct NewForeignKey {
pub table: u32,
pub name: Option<String>,
pub keys: Vec<i16>,
pub index: u32,
pub deferrable: bool,
pub deferred: bool,
pub foreign: ForeignKey,
}Expand description
A new foreign key before it has an OID.
Fields§
§table: u32The OID of the table.
name: Option<String>The name that the statement gives, or None to make one.
keys: Vec<i16>The referencing columns.
index: u32The OID of the unique index of the referenced table that the key uses.
deferrable: boolTrue for a deferrable constraint.
deferred: boolTrue for a constraint that is initially deferred.
foreign: ForeignKeyThe referenced table, its columns, the actions and the operators.
Trait Implementations§
Source§impl Clone for NewForeignKey
impl Clone for NewForeignKey
Source§impl Debug for NewForeignKey
impl Debug for NewForeignKey
impl Eq for NewForeignKey
Source§impl PartialEq for NewForeignKey
impl PartialEq for NewForeignKey
impl StructuralPartialEq for NewForeignKey
Auto Trait Implementations§
impl Freeze for NewForeignKey
impl RefUnwindSafe for NewForeignKey
impl Send for NewForeignKey
impl Sync for NewForeignKey
impl Unpin for NewForeignKey
impl UnsafeUnpin for NewForeignKey
impl UnwindSafe for NewForeignKey
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