Struct sea_orm::entity::prelude::RelationDef[][src]

pub struct RelationDef {
    pub rel_type: RelationType,
    pub from_tbl: TableRef,
    pub to_tbl: TableRef,
    pub from_col: Identity,
    pub to_col: Identity,
    pub is_owner: bool,
    pub on_delete: Option<ForeignKeyAction>,
    pub on_update: Option<ForeignKeyAction>,
}

Fields

rel_type: RelationTypefrom_tbl: TableRefto_tbl: TableReffrom_col: Identityto_col: Identityis_owner: boolon_delete: Option<ForeignKeyAction>on_update: Option<ForeignKeyAction>

Implementations

Reverse this relation (swap from and to)

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.