Struct sql_ddl::postgres::ForeignKey
source · pub struct ForeignKey<'a> {
pub constraint_name: Option<Cow<'a, str>>,
pub constrained_columns: Vec<Cow<'a, str>>,
pub referenced_table: &'a dyn Display,
pub referenced_columns: Vec<Cow<'a, str>>,
pub on_delete: Option<ForeignKeyAction>,
pub on_update: Option<ForeignKeyAction>,
}
Fields§
§constraint_name: Option<Cow<'a, str>>
§constrained_columns: Vec<Cow<'a, str>>
§referenced_table: &'a dyn Display
§referenced_columns: Vec<Cow<'a, str>>
§on_delete: Option<ForeignKeyAction>
§on_update: Option<ForeignKeyAction>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ForeignKey<'a>
impl<'a> !Send for ForeignKey<'a>
impl<'a> !Sync for ForeignKey<'a>
impl<'a> Unpin for ForeignKey<'a>
impl<'a> !UnwindSafe for ForeignKey<'a>
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