pub enum PredictionBasisReferenceV1 {
ProfileFact {
fact_id: String,
},
ResolvedSetting {
location: ResolvedSettingLocationV1,
setting_id: String,
},
ProjectField {
field_id: String,
value: PredictionScalarV1,
},
RawSource {
reference: RawSourceBasisReferenceV1,
},
Measurement {
schema: &'static str,
pointer: MeasurementPointerV1,
value: PredictionScalarV1,
},
PrimarySource {
source_id: String,
},
}Expand description
One typed reference in a prediction basis.
Variants§
ProfileFact
Exact profile-fact id resolved against the embedded profile record.
ResolvedSetting
Fully materialized engine setting.
Fields
location: ResolvedSettingLocationV1Exact document or duplicate-safe clip-row location.
ProjectField
Stable project/config field and exact scalar value.
RawSource
Same-load raw-source scalar evidence.
Fields
reference: RawSourceBasisReferenceV1Closed row/field/value reference.
Measurement
Validated scalar in the same file’s measurements-v15 contract.
Fields
pointer: MeasurementPointerV1Canonical measurements-root pointer.
value: PredictionScalarV1Exact scalar found at the pointer.
PrimarySource
Exact primary-source id in the embedded profile record.
Implementations§
Source§impl PredictionBasisReferenceV1
impl PredictionBasisReferenceV1
Sourcepub fn profile_fact(
fact_id: impl Into<String>,
) -> Result<Self, PredictionContractError>
pub fn profile_fact( fact_id: impl Into<String>, ) -> Result<Self, PredictionContractError>
Construct a profile-fact reference.
Sourcepub fn resolved_setting(
location: ResolvedSettingLocationV1,
setting_id: impl Into<String>,
) -> Result<Self, PredictionContractError>
pub fn resolved_setting( location: ResolvedSettingLocationV1, setting_id: impl Into<String>, ) -> Result<Self, PredictionContractError>
Construct a fully materialized setting reference.
Sourcepub fn project_field(
field_id: impl Into<String>,
value: PredictionScalarV1,
) -> Result<Self, PredictionContractError>
pub fn project_field( field_id: impl Into<String>, value: PredictionScalarV1, ) -> Result<Self, PredictionContractError>
Construct a project/config field reference.
Sourcepub fn raw_source(reference: RawSourceBasisReferenceV1) -> Self
pub fn raw_source(reference: RawSourceBasisReferenceV1) -> Self
Construct a raw-source reference already validated against its same-load view.
Sourcepub fn measurement(
pointer: MeasurementPointerV1,
value: PredictionScalarV1,
) -> Self
pub fn measurement( pointer: MeasurementPointerV1, value: PredictionScalarV1, ) -> Self
Construct a measurements-v15 scalar reference.
Sourcepub fn primary_source(
source_id: impl Into<String>,
) -> Result<Self, PredictionContractError>
pub fn primary_source( source_id: impl Into<String>, ) -> Result<Self, PredictionContractError>
Construct an embedded primary-source reference.
Trait Implementations§
Source§impl Clone for PredictionBasisReferenceV1
impl Clone for PredictionBasisReferenceV1
Source§fn clone(&self) -> PredictionBasisReferenceV1
fn clone(&self) -> PredictionBasisReferenceV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more