pub struct ModelDefinition {
pub name: QualifiedName,
pub inputs: Vec<InputBinding>,
pub features: Vec<Expr>,
pub path_context: Option<PathContextFeature>,
pub output: OutputBinding,
pub xervo_alias: String,
pub embedder_alias: Option<String>,
pub calibration: Option<CalibrationMethod>,
pub version: Option<String>,
pub annotations: ModelAnnotations,
}Expand description
CREATE MODEL declaration. Parses the full surface from impl plan §2.1;
Conformal / Dirichlet calibration methods are deferred to Phase C.
Fields§
§name: QualifiedName§inputs: Vec<InputBinding>§features: Vec<Expr>Feature expressions evaluated against input bindings. Empty when
the FEATURES clause is omitted (model receives all bound node
properties — interpretation deferred to the runtime adapter).
path_context: Option<PathContextFeature>Phase D D3: FEATURES (subject, column) FROM rule_name pulls
column from a prior-derived relation rule_name (keyed by
subject) at runtime, and feeds it as a feature alongside any
INPUT bindings. MVP: at most one path-context feature per
model, mutually exclusive with the expression-features form.
output: OutputBinding§xervo_alias: String§embedder_alias: Option<String>Phase D D2 follow-up: optional embedder alias surfaced by the
USING xervo('classify/X', embedder='alias') form. When
None, the runtime falls back to the alias "default" for
semantic_match query-text embedding.
calibration: Option<CalibrationMethod>§version: Option<String>§annotations: ModelAnnotationsTrait Implementations§
Source§impl Clone for ModelDefinition
impl Clone for ModelDefinition
Source§fn clone(&self) -> ModelDefinition
fn clone(&self) -> ModelDefinition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelDefinition
impl Debug for ModelDefinition
Source§impl<'de> Deserialize<'de> for ModelDefinition
impl<'de> Deserialize<'de> for ModelDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ModelDefinition
impl PartialEq for ModelDefinition
Source§fn eq(&self, other: &ModelDefinition) -> bool
fn eq(&self, other: &ModelDefinition) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelDefinition
impl Serialize for ModelDefinition
impl StructuralPartialEq for ModelDefinition
Auto Trait Implementations§
impl Freeze for ModelDefinition
impl RefUnwindSafe for ModelDefinition
impl Send for ModelDefinition
impl Sync for ModelDefinition
impl Unpin for ModelDefinition
impl UnsafeUnpin for ModelDefinition
impl UnwindSafe for ModelDefinition
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
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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