pub struct EnginePredictionV3 { /* private fields */ }Expand description
Per-check V3 engine prediction attachment bound to V3 provenance.
Implementations§
Source§impl EnginePredictionV3
impl EnginePredictionV3
Sourcepub fn new(
provenance_identity: PredictionProvenanceIdentityV3,
facets: Vec<EnginePredictionFacetV3>,
) -> Result<Self, PredictionContractError>
pub fn new( provenance_identity: PredictionProvenanceIdentityV3, facets: Vec<EnginePredictionFacetV3>, ) -> Result<Self, PredictionContractError>
Construct one V3 prediction with canonical unique facet scopes.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable V3 schema identity.
Sourcepub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV3
pub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV3
V3 file-provenance identity.
Sourcepub fn facets(&self) -> &[EnginePredictionFacetV3]
pub fn facets(&self) -> &[EnginePredictionFacetV3]
Canonically ordered facets.
Whether any required prediction work was unavailable.
Sourcepub fn basis_reference_count(&self) -> usize
pub fn basis_reference_count(&self) -> usize
Number of basis references retained by this attachment.
Sourcepub fn validate_against_provenance(
&self,
provenance: &PredictionProvenanceV3,
) -> Result<(), PredictionContractError>
pub fn validate_against_provenance( &self, provenance: &PredictionProvenanceV3, ) -> Result<(), PredictionContractError>
Cross-validate every basis reference against V3 provenance.
Trait Implementations§
Source§impl Clone for EnginePredictionV3
impl Clone for EnginePredictionV3
Source§fn clone(&self) -> EnginePredictionV3
fn clone(&self) -> EnginePredictionV3
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 EnginePredictionV3
impl Debug for EnginePredictionV3
Source§impl<'de> Deserialize<'de> for EnginePredictionV3
impl<'de> Deserialize<'de> for EnginePredictionV3
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 EnginePredictionV3
Source§impl PartialEq for EnginePredictionV3
impl PartialEq for EnginePredictionV3
Source§impl Serialize for EnginePredictionV3
impl Serialize for EnginePredictionV3
impl StructuralPartialEq for EnginePredictionV3
Auto Trait Implementations§
impl Freeze for EnginePredictionV3
impl RefUnwindSafe for EnginePredictionV3
impl Send for EnginePredictionV3
impl Sync for EnginePredictionV3
impl Unpin for EnginePredictionV3
impl UnsafeUnpin for EnginePredictionV3
impl UnwindSafe for EnginePredictionV3
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