pub struct PlanPredicate {
pub description: String,
pub statement: SqlStatement,
}Expand description
The predicate a prepare pass validated a plan’s target against, replayed
as a statement evaluated inside the transaction (ADR-099 D1, rule 1:
“predicate-based plans wherever a write’s scope depends on current
state”). Carrying the predicate rather than a prepare-time-enumerated row
list is what lets a later op in the same file (e.g. an intervening
link) be visible to this plan’s apply.
Fields§
§description: StringHuman-readable description of the condition, for diagnostics (e.g.
"source_id = :from").
statement: SqlStatementThe in-transaction statement whose scope is evaluated against current (committed-so-far) state, not prepare-time state.
Trait Implementations§
Source§impl Clone for PlanPredicate
impl Clone for PlanPredicate
Source§fn clone(&self) -> PlanPredicate
fn clone(&self) -> PlanPredicate
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 PlanPredicate
impl RefUnwindSafe for PlanPredicate
impl Send for PlanPredicate
impl Sync for PlanPredicate
impl Unpin for PlanPredicate
impl UnsafeUnpin for PlanPredicate
impl UnwindSafe for PlanPredicate
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