pub struct PredictionProvenanceV1 { /* private fields */ }Expand description
File-scoped immutable evidence shared by every engine prediction.
Implementations§
Source§impl PredictionProvenanceV1
impl PredictionProvenanceV1
Sourcepub fn new(
profile: ResolvedEngineProfileV1,
source_format: SourceFormatV1,
settings: ResolvedEngineSettingsV1,
raw_source: RawSourceBindingV1,
dependency_closure: DependencyClosureV1,
) -> Result<Self, PredictionContractError>
pub fn new( profile: ResolvedEngineProfileV1, source_format: SourceFormatV1, settings: ResolvedEngineSettingsV1, raw_source: RawSourceBindingV1, dependency_closure: DependencyClosureV1, ) -> Result<Self, PredictionContractError>
Bind one exact resolved profile to same-load source and closure evidence.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable schema identity.
Sourcepub const fn identity(&self) -> &PredictionProvenanceIdentityV1
pub const fn identity(&self) -> &PredictionProvenanceIdentityV1
Canonical identity over every semantic field.
Sourcepub const fn profile(&self) -> &ResolvedEngineProfileV1
pub const fn profile(&self) -> &ResolvedEngineProfileV1
Exact embedded resolved profile.
Sourcepub const fn source_format(&self) -> SourceFormatV1
pub const fn source_format(&self) -> SourceFormatV1
Authoritative source format used during resolution.
Sourcepub const fn settings(&self) -> &ResolvedEngineSettingsV1
pub const fn settings(&self) -> &ResolvedEngineSettingsV1
Fully materialized settings.
Sourcepub const fn raw_source(&self) -> &RawSourceBindingV1
pub const fn raw_source(&self) -> &RawSourceBindingV1
Same-load raw-source header evidence.
Sourcepub const fn dependency_closure(&self) -> &DependencyClosureV1
pub const fn dependency_closure(&self) -> &DependencyClosureV1
Complete serialized dependency-closure evidence.
Sourcepub const fn consumed_contracts(&self) -> &[&'static str; 5]
pub const fn consumed_contracts(&self) -> &[&'static str; 5]
Exact derived consumed-contract inventory.
Sourcepub fn validate(&self) -> Result<(), PredictionContractError>
pub fn validate(&self) -> Result<(), PredictionContractError>
Validate schema, cross-links, bounds, and canonical identity.
Trait Implementations§
Source§impl Clone for PredictionProvenanceV1
impl Clone for PredictionProvenanceV1
Source§fn clone(&self) -> PredictionProvenanceV1
fn clone(&self) -> PredictionProvenanceV1
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 PredictionProvenanceV1
impl Debug for PredictionProvenanceV1
Source§impl<'de> Deserialize<'de> for PredictionProvenanceV1
impl<'de> Deserialize<'de> for PredictionProvenanceV1
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 PredictionProvenanceV1
Source§impl PartialEq for PredictionProvenanceV1
impl PartialEq for PredictionProvenanceV1
Source§impl Serialize for PredictionProvenanceV1
impl Serialize for PredictionProvenanceV1
impl StructuralPartialEq for PredictionProvenanceV1
Auto Trait Implementations§
impl Freeze for PredictionProvenanceV1
impl RefUnwindSafe for PredictionProvenanceV1
impl Send for PredictionProvenanceV1
impl Sync for PredictionProvenanceV1
impl Unpin for PredictionProvenanceV1
impl UnsafeUnpin for PredictionProvenanceV1
impl UnwindSafe for PredictionProvenanceV1
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