pub struct EvaluateData {
pub bindings: IndexMap<usize, OperationResult>,
pub ignored_unknown: Vec<String>,
/* private fields */
}Expand description
User-provided data values resolved against a plan’s type declarations.
Lightweight and cheap to construct — no plan cloning required. The
ExecutionPlan stays immutable; callers pass (&ExecutionPlan, &EvaluateData)
to evaluation and show paths.
Fields§
§bindings: IndexMap<usize, OperationResult>Caller bindings by plan data slot, in caller order: successful literals or Veto (bad override) per Data.
ignored_unknown: Vec<String>Input keys that did not match any plan Data (including Import aliases).
Implementations§
Source§impl EvaluateData
impl EvaluateData
Sourcepub fn resolve(
plan: &ExecutionPlan,
raw_values: IndexMap<String, EvaluateDataValue>,
limits: &ResourceLimits,
) -> Result<Self, Error>
pub fn resolve( plan: &ExecutionPlan, raw_values: IndexMap<String, EvaluateDataValue>, limits: &ResourceLimits, ) -> Result<Self, Error>
Parse and validate caller-supplied values against the plan’s data declarations.
Unknown keys and Import aliases are ignored (recorded in Self::ignored_unknown).
Parse, constraint, options, decimals, and input-oversize failures bind that Data
as OperationResult::Veto; evaluation still runs. Duplicate canonical keys Error.
Trait Implementations§
Source§impl Clone for EvaluateData
impl Clone for EvaluateData
Source§impl Debug for EvaluateData
impl Debug for EvaluateData
Auto Trait Implementations§
impl Forget for EvaluateData
impl Freeze for EvaluateDatawhere
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<usize, OperationResult>>: Freeze,
PhantomData<(InstanceKey, Vec<(usize, RowBinding)>)>: Freeze,
PhantomData<((Option<InstanceKey>, DataPath), ())>: Freeze,
PhantomData<String>: Freeze,
impl Move for EvaluateData
impl RefUnwindSafe for EvaluateData
impl Send for EvaluateDatawhere
RawTable<usize>: Send,
RawVecInner: Send,
Arc<str>: Send,
BoxRaw<TypedLiteral>: Send,
Arc<RowInstance>: Send,
BoxRaw<InstanceKey>: Send,
Arc<[TypedLiteral]>: Send,
Arc<RowStore>: Send,
Arc<LemmaType>: Send,
Arc<KeyIndex>: Send,
Arc<InstanceFactors>: Send,
RawTable<(InstanceKey, Vec<(usize, RowBinding)>)>: Send,
RawTable<((Option<InstanceKey>, DataPath), ())>: Send,
impl Sync for EvaluateDatawhere
RawTable<usize>: Sync,
RawVecInner: Sync,
Arc<str>: Sync,
BoxRaw<TypedLiteral>: Sync,
Arc<RowInstance>: Sync,
BoxRaw<InstanceKey>: Sync,
Arc<[TypedLiteral]>: Sync,
Arc<RowStore>: Sync,
Arc<LemmaType>: Sync,
Arc<KeyIndex>: Sync,
Arc<InstanceFactors>: Sync,
RawTable<(InstanceKey, Vec<(usize, RowBinding)>)>: Sync,
RawTable<((Option<InstanceKey>, DataPath), ())>: Sync,
impl Unpin for EvaluateData
impl UnsafeUnpin for EvaluateDatawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<usize, OperationResult>>: UnsafeUnpin,
PhantomData<(InstanceKey, Vec<(usize, RowBinding)>)>: UnsafeUnpin,
PhantomData<((Option<InstanceKey>, DataPath), ())>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for EvaluateDatawhere
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<str>: UnwindSafe,
BoxRaw<TypedLiteral>: UnwindSafe,
Arc<RowInstance>: UnwindSafe,
BoxRaw<InstanceKey>: UnwindSafe,
Arc<[TypedLiteral]>: UnwindSafe,
Arc<RowStore>: UnwindSafe,
Arc<LemmaType>: UnwindSafe,
Arc<KeyIndex>: UnwindSafe,
Arc<InstanceFactors>: UnwindSafe,
HashMap<InstanceKey, Vec<(usize, RowBinding)>>: UnwindSafe,
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