pub struct EnginePredictionV5 { /* private fields */ }Expand description
V5 prediction wrapper binding a V4 result-bearing attachment to V5 provenance. The inner V4 layout remains immutable; the outer identity is what commits the additional raw inventory.
Implementations§
Source§impl EnginePredictionV5
impl EnginePredictionV5
Sourcepub fn new(
provenance: &PredictionProvenanceV5,
prediction: EnginePredictionV4,
) -> Result<Self, PredictionContractError>
pub fn new( provenance: &PredictionProvenanceV5, prediction: EnginePredictionV4, ) -> Result<Self, PredictionContractError>
Bind an already-validated result-bearing prediction to V5 provenance.
Sourcepub fn contract_id(&self) -> &str
pub fn contract_id(&self) -> &str
Immutable V5 contract id.
Sourcepub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV5
pub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV5
Bound V5 provenance identity.
Sourcepub fn facets(&self) -> &[EnginePredictionFacetV4]
pub fn facets(&self) -> &[EnginePredictionFacetV4]
Canonical facets.
Sourcepub const fn base_prediction(&self) -> &EnginePredictionV4
pub const fn base_prediction(&self) -> &EnginePredictionV4
Immutable nested V4 result graph.
Whether required work was unavailable.
Sourcepub fn basis_reference_count(&self) -> usize
pub fn basis_reference_count(&self) -> usize
Aggregate basis reference count.
Sourcepub fn validate_against_provenance(
&self,
provenance: &PredictionProvenanceV5,
) -> Result<(), PredictionContractError>
pub fn validate_against_provenance( &self, provenance: &PredictionProvenanceV5, ) -> Result<(), PredictionContractError>
Validate immutable nesting and the V5 identity binding.
Trait Implementations§
Source§impl Clone for EnginePredictionV5
impl Clone for EnginePredictionV5
Source§fn clone(&self) -> EnginePredictionV5
fn clone(&self) -> EnginePredictionV5
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 EnginePredictionV5
impl Debug for EnginePredictionV5
Source§impl<'de> Deserialize<'de> for EnginePredictionV5
impl<'de> Deserialize<'de> for EnginePredictionV5
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 EnginePredictionV5
Source§impl PartialEq for EnginePredictionV5
impl PartialEq for EnginePredictionV5
Source§impl Serialize for EnginePredictionV5
impl Serialize for EnginePredictionV5
impl StructuralPartialEq for EnginePredictionV5
Auto Trait Implementations§
impl Freeze for EnginePredictionV5
impl RefUnwindSafe for EnginePredictionV5
impl Send for EnginePredictionV5
impl Sync for EnginePredictionV5
impl Unpin for EnginePredictionV5
impl UnsafeUnpin for EnginePredictionV5
impl UnwindSafe for EnginePredictionV5
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