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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more