pub struct EnginePredictionV6 { /* private fields */ }Expand description
V6 wrapper binding the unchanged V4 facet/result graph to provenance V6.
Implementations§
Source§impl EnginePredictionV6
impl EnginePredictionV6
Sourcepub fn new(
provenance: &PredictionProvenanceV6,
prediction: EnginePredictionV4,
) -> Result<Self, PredictionContractError>
pub fn new( provenance: &PredictionProvenanceV6, prediction: EnginePredictionV4, ) -> Result<Self, PredictionContractError>
Bind an already validated V4 prediction to V6 provenance.
Sourcepub fn contract_id(&self) -> &str
pub fn contract_id(&self) -> &str
Immutable V6 contract id.
Sourcepub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV6
pub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV6
Bound V6 provenance identity.
Sourcepub fn facets(&self) -> &[EnginePredictionFacetV4]
pub fn facets(&self) -> &[EnginePredictionFacetV4]
Canonical facets from the unchanged V4 graph.
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: &PredictionProvenanceV6,
) -> Result<(), PredictionContractError>
pub fn validate_against_provenance( &self, provenance: &PredictionProvenanceV6, ) -> Result<(), PredictionContractError>
Validate immutable V4 nesting and the V6 identity binding.
Trait Implementations§
Source§impl Clone for EnginePredictionV6
impl Clone for EnginePredictionV6
Source§fn clone(&self) -> EnginePredictionV6
fn clone(&self) -> EnginePredictionV6
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 EnginePredictionV6
impl Debug for EnginePredictionV6
Source§impl<'de> Deserialize<'de> for EnginePredictionV6
impl<'de> Deserialize<'de> for EnginePredictionV6
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 EnginePredictionV6
Source§impl PartialEq for EnginePredictionV6
impl PartialEq for EnginePredictionV6
Source§impl Serialize for EnginePredictionV6
impl Serialize for EnginePredictionV6
impl StructuralPartialEq for EnginePredictionV6
Auto Trait Implementations§
impl Freeze for EnginePredictionV6
impl RefUnwindSafe for EnginePredictionV6
impl Send for EnginePredictionV6
impl Sync for EnginePredictionV6
impl Unpin for EnginePredictionV6
impl UnsafeUnpin for EnginePredictionV6
impl UnwindSafe for EnginePredictionV6
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