pub struct CompiledClause {
pub match_pattern: Pattern,
pub where_conditions: Vec<RuleCondition>,
pub along: Vec<AlongBinding>,
pub fold: Vec<FoldBinding>,
pub having: Vec<Expr>,
pub best_by: Option<BestByClause>,
pub output: RuleOutput,
pub priority: Option<i64>,
pub model_invocations: Vec<ModelInvocation>,
pub hidden_yield_cols: Vec<String>,
}Expand description
A single clause (one CREATE RULE … AS … definition).
Fields§
§match_pattern: Pattern§where_conditions: Vec<RuleCondition>§along: Vec<AlongBinding>§fold: Vec<FoldBinding>§having: Vec<Expr>Post-FOLD filter conditions (HAVING semantics).
best_by: Option<BestByClause>§output: RuleOutput§priority: Option<i64>§model_invocations: Vec<ModelInvocation>Phase B Slice 3: neural-model invocations extracted from this
clause’s YIELD items (or, in future slices, other body sites).
Each invocation produces a synthetic output column whose values
are filled at runtime by the registered crate::NeuralClassifier;
the original model(args) expression in YIELD has been rewritten
to a uni_cypher::ast::Expr::Variable reference to that column.
Column names that the compiler appended to this clause’s YIELD
as hidden materialization items (e.g. "s.tier" for
scorer(s.tier)). They flow through projection/fixpoint to feed
apply_model_invocations, then get stripped from the final
LocyResult rows by the runtime.
Trait Implementations§
Source§impl Clone for CompiledClause
impl Clone for CompiledClause
Source§fn clone(&self) -> CompiledClause
fn clone(&self) -> CompiledClause
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 CompiledClause
impl RefUnwindSafe for CompiledClause
impl Send for CompiledClause
impl Sync for CompiledClause
impl Unpin for CompiledClause
impl UnsafeUnpin for CompiledClause
impl UnwindSafe for CompiledClause
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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