pub struct ForeignKeySnapshot {
pub name: String,
pub columns: Vec<String>,
pub referenced_schema: String,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
pub on_delete: ReferentialAction,
pub on_update: ReferentialAction,
}Expand description
Snapshot of a foreign key, including referenced target and referential actions.
Fields§
§name: String§columns: Vec<String>§referenced_schema: String§referenced_table: String§referenced_columns: Vec<String>§on_delete: ReferentialAction§on_update: ReferentialActionImplementations§
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
Source§impl From<&ForeignKeyMetadata> for ForeignKeySnapshot
impl From<&ForeignKeyMetadata> for ForeignKeySnapshot
Source§fn from(foreign_key: &ForeignKeyMetadata) -> Self
fn from(foreign_key: &ForeignKeyMetadata) -> Self
Converts to this type from the input type.
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 Eq 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