pub struct PredictionProvenanceV2 { /* private fields */ }Expand description
File-scoped immutable V2 evidence shared by bounded-overflow predictions.
Implementations§
Source§impl PredictionProvenanceV2
impl PredictionProvenanceV2
Sourcepub fn new(
profile: ResolvedEngineProfileV1,
source_format: SourceFormatV1,
settings: ResolvedEngineSettingsV2,
raw_source: RawSourceBindingV1,
dependency_closure: DependencyClosureV1,
) -> Result<Self, PredictionContractError>
pub fn new( profile: ResolvedEngineProfileV1, source_format: SourceFormatV1, settings: ResolvedEngineSettingsV2, raw_source: RawSourceBindingV1, dependency_closure: DependencyClosureV1, ) -> Result<Self, PredictionContractError>
Bind V2 settings to same-load source and closure evidence.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable V2 schema identity.
Sourcepub const fn identity(&self) -> &PredictionProvenanceIdentityV2
pub const fn identity(&self) -> &PredictionProvenanceIdentityV2
Canonical V2 identity.
Sourcepub const fn profile(&self) -> &ResolvedEngineProfileV1
pub const fn profile(&self) -> &ResolvedEngineProfileV1
Exact embedded profile.
Sourcepub const fn source_format(&self) -> SourceFormatV1
pub const fn source_format(&self) -> SourceFormatV1
Authoritative resolved source format.
Sourcepub const fn settings(&self) -> &ResolvedEngineSettingsV2
pub const fn settings(&self) -> &ResolvedEngineSettingsV2
Explicitly complete or partial resolved settings.
Sourcepub const fn raw_source(&self) -> &RawSourceBindingV1
pub const fn raw_source(&self) -> &RawSourceBindingV1
Same-load raw source evidence.
Sourcepub const fn dependency_closure(&self) -> &DependencyClosureV1
pub const fn dependency_closure(&self) -> &DependencyClosureV1
Same-load dependency closure evidence.
Sourcepub fn validate(&self) -> Result<(), PredictionContractError>
pub fn validate(&self) -> Result<(), PredictionContractError>
Validate the V2 identity and all inherited evidence cross-links.
Trait Implementations§
Source§impl Clone for PredictionProvenanceV2
impl Clone for PredictionProvenanceV2
Source§fn clone(&self) -> PredictionProvenanceV2
fn clone(&self) -> PredictionProvenanceV2
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 PredictionProvenanceV2
impl Debug for PredictionProvenanceV2
Source§impl<'de> Deserialize<'de> for PredictionProvenanceV2
impl<'de> Deserialize<'de> for PredictionProvenanceV2
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 PredictionProvenanceV2
Source§impl PartialEq for PredictionProvenanceV2
impl PartialEq for PredictionProvenanceV2
Source§impl Serialize for PredictionProvenanceV2
impl Serialize for PredictionProvenanceV2
impl StructuralPartialEq for PredictionProvenanceV2
Auto Trait Implementations§
impl Freeze for PredictionProvenanceV2
impl RefUnwindSafe for PredictionProvenanceV2
impl Send for PredictionProvenanceV2
impl Sync for PredictionProvenanceV2
impl Unpin for PredictionProvenanceV2
impl UnsafeUnpin for PredictionProvenanceV2
impl UnwindSafe for PredictionProvenanceV2
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