pub struct DeletePlan {
pub target_id: Uuid,
pub statements: Vec<PlanStatement>,
pub post_commit: PostCommitEffect,
}Expand description
Write plan for a delete op (soft or hard).
Fields§
§target_id: UuidThe id of the entity or note being deleted.
statements: Vec<PlanStatement>Row DML (and, for a hard delete, incident-edge cascade DML) to apply inside the atomic unit, in order. The target-row delete statement carries the existence guard; a cascade edge-delete statement (hard delete only) is unguarded — it may legitimately affect zero rows if the target had no incident edges.
post_commit: PostCommitEffectDeferred note-mutation-hook fire, for a note delete (#750 fix-round
2). PostCommitEffect::None for entity and edge deletes — the hook
system is note-only.
Trait Implementations§
Source§impl Clone for DeletePlan
impl Clone for DeletePlan
Source§fn clone(&self) -> DeletePlan
fn clone(&self) -> DeletePlan
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 moreAuto Trait Implementations§
impl Freeze for DeletePlan
impl RefUnwindSafe for DeletePlan
impl Send for DeletePlan
impl Sync for DeletePlan
impl Unpin for DeletePlan
impl UnsafeUnpin for DeletePlan
impl UnwindSafe for DeletePlan
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