pub struct ForeignKeyInfo {
pub name: String,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_schema: Option<String>,
pub referenced_columns: Vec<String>,
pub on_delete: ReferentialAction,
pub on_update: ReferentialAction,
}Expand description
Information about a foreign key.
Fields§
§name: StringConstraint name.
columns: Vec<String>Local columns.
referenced_table: StringReferenced table.
referenced_schema: Option<String>Referenced schema.
referenced_columns: Vec<String>Referenced columns.
on_delete: ReferentialActionON DELETE action.
on_update: ReferentialActionON UPDATE action.
Trait Implementations§
Source§impl Clone for ForeignKeyInfo
impl Clone for ForeignKeyInfo
Source§fn clone(&self) -> ForeignKeyInfo
fn clone(&self) -> ForeignKeyInfo
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 ForeignKeyInfo
impl Debug for ForeignKeyInfo
Source§impl Default for ForeignKeyInfo
impl Default for ForeignKeyInfo
Source§fn default() -> ForeignKeyInfo
fn default() -> ForeignKeyInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ForeignKeyInfo
impl<'de> Deserialize<'de> for ForeignKeyInfo
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
Auto Trait Implementations§
impl Freeze for ForeignKeyInfo
impl RefUnwindSafe for ForeignKeyInfo
impl Send for ForeignKeyInfo
impl Sync for ForeignKeyInfo
impl Unpin for ForeignKeyInfo
impl UnwindSafe for ForeignKeyInfo
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