pub struct ForeignKeySnapshot {
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
Snapshot of a foreign key
Fields§
§name: StringName of the constraint
columns: Vec<String>Columns in this table
referenced_table: StringReferenced table
referenced_columns: Vec<String>Referenced columns
on_delete: Option<String>On delete action
on_update: Option<String>On update action
Trait Implementations§
Source§impl Clone for ForeignKeySnapshot
impl Clone for ForeignKeySnapshot
Source§fn clone(&self) -> ForeignKeySnapshot
fn clone(&self) -> ForeignKeySnapshot
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 ForeignKeySnapshot
impl Debug for ForeignKeySnapshot
Source§impl<'de> Deserialize<'de> for ForeignKeySnapshot
impl<'de> Deserialize<'de> for ForeignKeySnapshot
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 ForeignKeySnapshot
Source§impl PartialEq for ForeignKeySnapshot
impl PartialEq for ForeignKeySnapshot
Source§fn eq(&self, other: &ForeignKeySnapshot) -> bool
fn eq(&self, other: &ForeignKeySnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ForeignKeySnapshot
impl Serialize for ForeignKeySnapshot
impl StructuralPartialEq for ForeignKeySnapshot
Auto Trait Implementations§
impl Freeze for ForeignKeySnapshot
impl RefUnwindSafe for ForeignKeySnapshot
impl Send for ForeignKeySnapshot
impl Sync for ForeignKeySnapshot
impl Unpin for ForeignKeySnapshot
impl UnsafeUnpin for ForeignKeySnapshot
impl UnwindSafe for ForeignKeySnapshot
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