pub struct ForeignKeySnapshot {
pub table: String,
pub column: String,
pub on_delete: OnDeleteSnapshot,
}Expand description
Snapshot of a foreign key reference attached to a column.
Fields§
§table: StringName of the referenced table.
column: StringName of the referenced column on the target table.
on_delete: OnDeleteSnapshotAction performed on referenced row deletion.
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 · 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 Encode for ForeignKeySnapshot
impl Encode for ForeignKeySnapshot
Source§const ALIGNMENT: PageOffset = 32
const ALIGNMENT: PageOffset = 32
The alignment requirement in bytes for the data type. Read more
Source§impl PartialEq for ForeignKeySnapshot
impl PartialEq for ForeignKeySnapshot
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