[][src]Struct rustorm::table::ForeignKey

pub struct ForeignKey {
    pub name: Option<String>,
    pub columns: Vec<ColumnName>,
    pub foreign_table: TableName,
    pub referred_columns: Vec<ColumnName>,
}

example: category { id, name } product { product_id, name, category_id }

if the table in context is product and the foreign table is category ForeignKey{ name: product_category_fkey columns: [category_id] foreign_table: category referred_columns: [id] }

Fields

Trait Implementations

impl PartialEq<ForeignKey> for ForeignKey
[src]

impl Clone for ForeignKey
[src]

Performs copy-assignment from source. Read more

impl Debug for ForeignKey
[src]

Auto Trait Implementations

impl Send for ForeignKey

impl Sync for ForeignKey

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]