pub struct EnginePredictionV4 { /* private fields */ }Expand description
Per-check result-bearing V4 prediction attachment.
Implementations§
Source§impl EnginePredictionV4
impl EnginePredictionV4
Sourcepub fn new(
provenance_identity: PredictionProvenanceIdentityV4,
facets: Vec<EnginePredictionFacetV4>,
) -> Result<Self, PredictionContractError>
pub fn new( provenance_identity: PredictionProvenanceIdentityV4, facets: Vec<EnginePredictionFacetV4>, ) -> Result<Self, PredictionContractError>
Construct a V4 attachment with canonical unique scopes.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable contract id.
Sourcepub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV4
pub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV4
Bound V4 provenance identity.
Sourcepub fn facets(&self) -> &[EnginePredictionFacetV4]
pub fn facets(&self) -> &[EnginePredictionFacetV4]
Canonically ordered facets.
Whether any required work is 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: &PredictionProvenanceV4,
) -> Result<(), PredictionContractError>
pub fn validate_against_provenance( &self, provenance: &PredictionProvenanceV4, ) -> Result<(), PredictionContractError>
Cross-validate all references and result prerequisites.
Trait Implementations§
Source§impl Clone for EnginePredictionV4
impl Clone for EnginePredictionV4
Source§fn clone(&self) -> EnginePredictionV4
fn clone(&self) -> EnginePredictionV4
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 EnginePredictionV4
impl Debug for EnginePredictionV4
Source§impl<'de> Deserialize<'de> for EnginePredictionV4
impl<'de> Deserialize<'de> for EnginePredictionV4
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 EnginePredictionV4
Source§impl PartialEq for EnginePredictionV4
impl PartialEq for EnginePredictionV4
Source§impl Serialize for EnginePredictionV4
impl Serialize for EnginePredictionV4
impl StructuralPartialEq for EnginePredictionV4
Auto Trait Implementations§
impl Freeze for EnginePredictionV4
impl RefUnwindSafe for EnginePredictionV4
impl Send for EnginePredictionV4
impl Sync for EnginePredictionV4
impl Unpin for EnginePredictionV4
impl UnsafeUnpin for EnginePredictionV4
impl UnwindSafe for EnginePredictionV4
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