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 CandidType for ForeignKeySnapshot
impl CandidType for ForeignKeySnapshot
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<ForeignKeySnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ForeignKeySnapshot, <__D as Deserializer<'de>>::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§fn decode(data: Cow<'_, [u8]>) -> Result<ForeignKeySnapshot, MemoryError>where
ForeignKeySnapshot: Sized,
fn decode(data: Cow<'_, [u8]>) -> Result<ForeignKeySnapshot, MemoryError>where
ForeignKeySnapshot: Sized,
Decodes the data type from a slice of bytes.
Source§impl PartialEq for ForeignKeySnapshot
impl PartialEq for ForeignKeySnapshot
Source§impl Serialize for ForeignKeySnapshot
impl Serialize for ForeignKeySnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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