pub struct ForeignKeyDefinition {
pub name: String,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
pub on_delete: Option<String>,
pub on_update: Option<String>,
}Expand description
Foreign key definition
Fields§
§name: String§columns: Vec<String>§referenced_table: String§referenced_columns: Vec<String>§on_delete: Option<String>§on_update: Option<String>Trait Implementations§
Source§impl Clone for ForeignKeyDefinition
impl Clone for ForeignKeyDefinition
Source§fn clone(&self) -> ForeignKeyDefinition
fn clone(&self) -> ForeignKeyDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ForeignKeyDefinition
impl Debug for ForeignKeyDefinition
Source§impl<'de> Deserialize<'de> for ForeignKeyDefinition
impl<'de> Deserialize<'de> for ForeignKeyDefinition
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
impl Eq for ForeignKeyDefinition
Source§impl PartialEq for ForeignKeyDefinition
impl PartialEq for ForeignKeyDefinition
Source§fn eq(&self, other: &ForeignKeyDefinition) -> bool
fn eq(&self, other: &ForeignKeyDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ForeignKeyDefinition
impl Serialize for ForeignKeyDefinition
impl StructuralPartialEq for ForeignKeyDefinition
Auto Trait Implementations§
impl Freeze for ForeignKeyDefinition
impl RefUnwindSafe for ForeignKeyDefinition
impl Send for ForeignKeyDefinition
impl Sync for ForeignKeyDefinition
impl Unpin for ForeignKeyDefinition
impl UnsafeUnpin for ForeignKeyDefinition
impl UnwindSafe for ForeignKeyDefinition
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