pub struct ForeignKeyDefinition {
pub constraint_name: String,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
}Expand description
A foreign key constraint on a table.
Represents a single FK constraint linking one or more columns in the current table to columns in a referenced table.
Fields§
§constraint_name: StringConstraint name in the source database
columns: Vec<String>Column(s) in this table that form the FK
referenced_table: StringThe table referenced by this FK
referenced_columns: Vec<String>The column(s) in the referenced table
Trait Implementations§
Source§impl Clone for ForeignKeyDefinition
impl Clone for ForeignKeyDefinition
Source§fn clone(&self) -> ForeignKeyDefinition
fn clone(&self) -> ForeignKeyDefinition
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 moreSource§impl Debug for ForeignKeyDefinition
impl Debug for ForeignKeyDefinition
Source§impl<'de> Deserialize<'de> for ForeignKeyDefinition
impl<'de> Deserialize<'de> for ForeignKeyDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ForeignKeyDefinition
impl PartialEq for ForeignKeyDefinition
Source§impl Serialize for ForeignKeyDefinition
impl Serialize for ForeignKeyDefinition
impl StructuralPartialEq for ForeignKeyDefinition
Auto Trait Implementations§
impl Freeze for ForeignKeyDefinition
impl RefUnwindSafe for ForeignKeyDefinition
impl Send for ForeignKeyDefinition
impl Sync for ForeignKeyDefinition
impl Unpin for ForeignKeyDefinition
impl UnsafeUnpin for ForeignKeyDefinition
impl UnwindSafe for ForeignKeyDefinition
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