pub struct DeletionTriggerInfo {
pub table_module: String,
pub table_name: String,
pub trigger_name: String,
pub ddl: String,
}Expand description
Structured description of one deletion-policy trigger (either a
single-link Source-side DeleteTarget/DeleteTargetIfOrphan, a
multilink Source-side DeleteTarget/DeleteTargetIfOrphan, or a
multilink Target-side DeleteSource). Each trigger has its own
dedicated function (unlike the exclusive-constraint triggers, no
function sharing), so ddl carries the combined CREATE FUNCTION +
CREATE TRIGGER block. Used by both export_schema (unconditional
emission) and the diff engine (diff/mod.rs, comparing against live
DbTable.triggers) so the two DDL-generation paths can’t drift the way
they did before — the incremental migration path used to never emit
these triggers at all.
Fields§
§table_module: String§table_name: StringThe table the CREATE TRIGGER attaches to (the link’s/multilink’s
own owner table for Source-side triggers; the junction table for a
multilink Target-side trigger).
trigger_name: String§ddl: StringAuto Trait Implementations§
impl Freeze for DeletionTriggerInfo
impl RefUnwindSafe for DeletionTriggerInfo
impl Send for DeletionTriggerInfo
impl Sync for DeletionTriggerInfo
impl Unpin for DeletionTriggerInfo
impl UnsafeUnpin for DeletionTriggerInfo
impl UnwindSafe for DeletionTriggerInfo
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.