pub struct TableConstraints {
pub foreign_keys: Option<Vec<TableConstraintsForeignKeys>>,
pub primary_key: Option<TableConstraintsPrimaryKey>,
}Expand description
The TableConstraints defines the primary key and foreign key.
This type is not used in any activity, and only used as part of another schema.
Fields§
§foreign_keys: Option<Vec<TableConstraintsForeignKeys>>Optional. Present only if the table has a foreign key. The foreign key is not enforced.
primary_key: Option<TableConstraintsPrimaryKey>Represents the primary key constraint on a table’s columns.
Trait Implementations§
Source§impl Clone for TableConstraints
impl Clone for TableConstraints
Source§fn clone(&self) -> TableConstraints
fn clone(&self) -> TableConstraints
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 TableConstraints
impl Debug for TableConstraints
Source§impl Default for TableConstraints
impl Default for TableConstraints
Source§fn default() -> TableConstraints
fn default() -> TableConstraints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TableConstraints
impl<'de> Deserialize<'de> for TableConstraints
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TableConstraints
impl Serialize for TableConstraints
impl Part for TableConstraints
Auto Trait Implementations§
impl Freeze for TableConstraints
impl RefUnwindSafe for TableConstraints
impl Send for TableConstraints
impl Sync for TableConstraints
impl Unpin for TableConstraints
impl UnwindSafe for TableConstraints
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