pub struct References {
pub name: String,
pub columns: Vec<String>,
pub table: String,
pub foreign_columns: Vec<String>,
pub on_update: Option<ForeignKeyAction>,
pub on_delete: Option<ForeignKeyAction>,
}
Available on crate features
postgres
and def
only.Expand description
A constraint that column references the values appearing in the row of another table
Fieldsยง
ยงname: String
ยงcolumns: Vec<String>
ยงtable: String
ยงforeign_columns: Vec<String>
ยงon_update: Option<ForeignKeyAction>
ยงon_delete: Option<ForeignKeyAction>
Implementationsยง
Sourceยงimpl References
impl References
pub fn write(&self) -> ForeignKeyCreateStatement
Available on crate feature
writer
only.Trait Implementationsยง
Sourceยงimpl Clone for References
impl Clone for References
Sourceยงfn clone(&self) -> References
fn clone(&self) -> References
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 References
impl Debug for References
Sourceยงimpl PartialEq for References
impl PartialEq for References
impl StructuralPartialEq for References
Auto Trait Implementationsยง
impl Freeze for References
impl RefUnwindSafe for References
impl Send for References
impl Sync for References
impl Unpin for References
impl UnwindSafe for References
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