Struct sea_schema::postgres::def::References
source · [−]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>,
}
This is supported 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
sourceimpl References
impl References
pub fn write(&self) -> ForeignKeyCreateStatement
This is supported on crate feature
writer
only.Trait Implementations
sourceimpl Clone for References
impl Clone for References
sourcefn clone(&self) -> References
fn clone(&self) -> References
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for References
impl Debug for References
sourceimpl PartialEq<References> for References
impl PartialEq<References> for References
sourcefn eq(&self, other: &References) -> bool
fn eq(&self, other: &References) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &References) -> bool
fn ne(&self, other: &References) -> bool
This method tests for !=
.
impl StructuralPartialEq for References
Auto Trait Implementations
impl RefUnwindSafe for References
impl Send for References
impl Sync for References
impl Unpin for References
impl UnwindSafe for References
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more