pub struct PredictionProvenanceV3 { /* private fields */ }Expand description
File-scoped V3 provenance that binds exact source timing evidence.
Implementations§
Source§impl PredictionProvenanceV3
impl PredictionProvenanceV3
Sourcepub fn new(
profile: ResolvedEngineProfileV1,
source_format: SourceFormatV1,
settings: ResolvedEngineSettingsV2,
raw_source: RawSourceBindingV2,
dependency_closure: DependencyClosureV1,
) -> Result<Self, PredictionContractError>
pub fn new( profile: ResolvedEngineProfileV1, source_format: SourceFormatV1, settings: ResolvedEngineSettingsV2, raw_source: RawSourceBindingV2, dependency_closure: DependencyClosureV1, ) -> Result<Self, PredictionContractError>
Bind V2 settings to same-load V2 raw evidence and dependency closure.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable V3 schema identity.
Sourcepub const fn identity(&self) -> &PredictionProvenanceIdentityV3
pub const fn identity(&self) -> &PredictionProvenanceIdentityV3
Canonical V3 provenance identity.
Sourcepub const fn profile(&self) -> &ResolvedEngineProfileV1
pub const fn profile(&self) -> &ResolvedEngineProfileV1
Exact embedded engine profile.
Sourcepub const fn source_format(&self) -> SourceFormatV1
pub const fn source_format(&self) -> SourceFormatV1
Authoritative source format.
Sourcepub const fn settings(&self) -> &ResolvedEngineSettingsV2
pub const fn settings(&self) -> &ResolvedEngineSettingsV2
Explicit complete/partial resolved settings.
Sourcepub const fn raw_source(&self) -> &RawSourceBindingV2
pub const fn raw_source(&self) -> &RawSourceBindingV2
Same-load V2 raw-source and exact timing evidence.
Sourcepub const fn dependency_closure(&self) -> &DependencyClosureV1
pub const fn dependency_closure(&self) -> &DependencyClosureV1
Same-load dependency closure.
Sourcepub fn validate(&self) -> Result<(), PredictionContractError>
pub fn validate(&self) -> Result<(), PredictionContractError>
Validate all V3 identities, bounds, and evidence cross-links.
Trait Implementations§
Source§impl Clone for PredictionProvenanceV3
impl Clone for PredictionProvenanceV3
Source§fn clone(&self) -> PredictionProvenanceV3
fn clone(&self) -> PredictionProvenanceV3
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 PredictionProvenanceV3
impl Debug for PredictionProvenanceV3
Source§impl<'de> Deserialize<'de> for PredictionProvenanceV3
impl<'de> Deserialize<'de> for PredictionProvenanceV3
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 PredictionProvenanceV3
Source§impl PartialEq for PredictionProvenanceV3
impl PartialEq for PredictionProvenanceV3
Source§impl Serialize for PredictionProvenanceV3
impl Serialize for PredictionProvenanceV3
impl StructuralPartialEq for PredictionProvenanceV3
Auto Trait Implementations§
impl Freeze for PredictionProvenanceV3
impl RefUnwindSafe for PredictionProvenanceV3
impl Send for PredictionProvenanceV3
impl Sync for PredictionProvenanceV3
impl Unpin for PredictionProvenanceV3
impl UnsafeUnpin for PredictionProvenanceV3
impl UnwindSafe for PredictionProvenanceV3
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