pub struct EnginePredictionV2 { /* private fields */ }Expand description
Per-check bounded-overflow engine prediction attachment.
Implementations§
Source§impl EnginePredictionV2
impl EnginePredictionV2
Sourcepub fn new(
provenance_identity: PredictionProvenanceIdentityV2,
facets: Vec<EnginePredictionFacetV2>,
) -> Result<Self, PredictionContractError>
pub fn new( provenance_identity: PredictionProvenanceIdentityV2, facets: Vec<EnginePredictionFacetV2>, ) -> Result<Self, PredictionContractError>
Construct one V2 prediction with canonical unique facet scopes.
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) -> &PredictionProvenanceIdentityV2
pub const fn provenance_identity(&self) -> &PredictionProvenanceIdentityV2
V2 file provenance identity.
Sourcepub fn facets(&self) -> &[EnginePredictionFacetV2]
pub fn facets(&self) -> &[EnginePredictionFacetV2]
Canonically ordered facets.
Whether any required work is 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: &PredictionProvenanceV2,
) -> Result<(), PredictionContractError>
pub fn validate_against_provenance( &self, provenance: &PredictionProvenanceV2, ) -> Result<(), PredictionContractError>
Cross-validate every basis reference against this V2 provenance.
Trait Implementations§
Source§impl Clone for EnginePredictionV2
impl Clone for EnginePredictionV2
Source§fn clone(&self) -> EnginePredictionV2
fn clone(&self) -> EnginePredictionV2
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 EnginePredictionV2
impl Debug for EnginePredictionV2
Source§impl<'de> Deserialize<'de> for EnginePredictionV2
impl<'de> Deserialize<'de> for EnginePredictionV2
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 EnginePredictionV2
Source§impl PartialEq for EnginePredictionV2
impl PartialEq for EnginePredictionV2
Source§impl Serialize for EnginePredictionV2
impl Serialize for EnginePredictionV2
impl StructuralPartialEq for EnginePredictionV2
Auto Trait Implementations§
impl Freeze for EnginePredictionV2
impl RefUnwindSafe for EnginePredictionV2
impl Send for EnginePredictionV2
impl Sync for EnginePredictionV2
impl Unpin for EnginePredictionV2
impl UnsafeUnpin for EnginePredictionV2
impl UnwindSafe for EnginePredictionV2
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