pub struct EnginePredictionV1 { /* private fields */ }Expand description
Per-check engine-prediction attachment.
Implementations§
Source§impl EnginePredictionV1
impl EnginePredictionV1
Sourcepub fn deserialize_with_file_limits<'de, D>(
deserializer: D,
facet_limit: usize,
reference_limit: usize,
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
pub fn deserialize_with_file_limits<'de, D>(
deserializer: D,
facet_limit: usize,
reference_limit: usize,
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize one prediction while enforcing caller-owned file budgets.
Standalone Deserialize enforces only prediction-local V1 caps.
Staged file and envelope readers use this entry point to stop before a
row exceeds their remaining aggregate facet or basis-reference budget.
Sourcepub fn new(
provenance_identity: PredictionProvenanceIdentityV1,
facets: Vec<EnginePredictionFacetV1>,
) -> Result<Self, PredictionContractError>
pub fn new( provenance_identity: PredictionProvenanceIdentityV1, facets: Vec<EnginePredictionFacetV1>, ) -> Result<Self, PredictionContractError>
Construct a nonempty canonical prediction attachment.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable schema identity.
Sourcepub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV1
pub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV1
Exact enclosing file provenance identity.
Sourcepub fn facets(&self) -> &[EnginePredictionFacetV1]
pub fn facets(&self) -> &[EnginePredictionFacetV1]
Canonically ordered scoped work units.
Whether any required prediction work was unavailable.
Sourcepub fn basis_reference_count(&self) -> usize
pub fn basis_reference_count(&self) -> usize
Number of typed basis rows retained by this attachment.
Sourcepub fn validate_against_provenance(
&self,
provenance: &PredictionProvenanceV1,
) -> Result<(), PredictionContractError>
pub fn validate_against_provenance( &self, provenance: &PredictionProvenanceV1, ) -> Result<(), PredictionContractError>
Cross-validate basis references against the exact embedded provenance.
Sourcepub fn validate_measurement_references(
&self,
measurements: &MeasurementContract,
) -> Result<(), PredictionContractError>
pub fn validate_measurement_references( &self, measurements: &MeasurementContract, ) -> Result<(), PredictionContractError>
Resolve and compare every measurement basis row after measurements-v15 validation.
Trait Implementations§
Source§impl Clone for EnginePredictionV1
impl Clone for EnginePredictionV1
Source§fn clone(&self) -> EnginePredictionV1
fn clone(&self) -> EnginePredictionV1
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 moreSource§impl Debug for EnginePredictionV1
impl Debug for EnginePredictionV1
Source§impl<'de> Deserialize<'de> for EnginePredictionV1
impl<'de> Deserialize<'de> for EnginePredictionV1
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EnginePredictionV1
Source§impl PartialEq for EnginePredictionV1
impl PartialEq for EnginePredictionV1
Source§impl Serialize for EnginePredictionV1
impl Serialize for EnginePredictionV1
impl StructuralPartialEq for EnginePredictionV1
Auto Trait Implementations§
impl Freeze for EnginePredictionV1
impl RefUnwindSafe for EnginePredictionV1
impl Send for EnginePredictionV1
impl Sync for EnginePredictionV1
impl Unpin for EnginePredictionV1
impl UnsafeUnpin for EnginePredictionV1
impl UnwindSafe for EnginePredictionV1
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