pub struct SchemaForeignKey {
pub name: Option<String>,
pub columns: Vec<String>,
pub references: SchemaTableReference,
}Expand description
Table-level foreign key reference metadata.
Fields§
§name: Option<String>Optional FK name.
columns: Vec<String>Source columns in the current table.
references: SchemaTableReferenceReferenced target table + columns.
Trait Implementations§
Source§impl Clone for SchemaForeignKey
impl Clone for SchemaForeignKey
Source§fn clone(&self) -> SchemaForeignKey
fn clone(&self) -> SchemaForeignKey
Returns a duplicate of the value. Read more
1.0.0 · 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 SchemaForeignKey
impl Debug for SchemaForeignKey
Source§impl<'de> Deserialize<'de> for SchemaForeignKey
impl<'de> Deserialize<'de> for SchemaForeignKey
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
Auto Trait Implementations§
impl Freeze for SchemaForeignKey
impl RefUnwindSafe for SchemaForeignKey
impl Send for SchemaForeignKey
impl Sync for SchemaForeignKey
impl Unpin for SchemaForeignKey
impl UnsafeUnpin for SchemaForeignKey
impl UnwindSafe for SchemaForeignKey
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