pub struct ResolvedEngineProfileV1 { /* private fields */ }Expand description
Registry-independent, self-contained immutable engine profile record.
Implementations§
Source§impl ResolvedEngineProfileV1
impl ResolvedEngineProfileV1
Sourcepub fn new(
selection: EngineProfileSelectionV1,
fact_bundle_urn: impl Into<String>,
facts: Vec<EngineProfileFactV1>,
setting_descriptors: Vec<EngineSettingDescriptorV1>,
primary_sources: Vec<EnginePrimarySourceV1>,
) -> Result<Self, EngineContractError>
pub fn new( selection: EngineProfileSelectionV1, fact_bundle_urn: impl Into<String>, facts: Vec<EngineProfileFactV1>, setting_descriptors: Vec<EngineSettingDescriptorV1>, primary_sources: Vec<EnginePrimarySourceV1>, ) -> Result<Self, EngineContractError>
Construct and canonically order one self-contained profile record.
§Errors
Returns EngineContractError when the profile is incomplete,
internally inconsistent, duplicated, or exceeds a V1 bound.
Sourcepub fn contract_id(&self) -> &str
pub fn contract_id(&self) -> &str
Contract id carried in the schema field.
Sourcepub const fn selection(&self) -> &EngineProfileSelectionV1
pub const fn selection(&self) -> &EngineProfileSelectionV1
Exact four-field profile selection.
Sourcepub fn fact_bundle_urn(&self) -> &str
pub fn fact_bundle_urn(&self) -> &str
Selected immutable profile fact-bundle URN.
Sourcepub const fn facts_identity(&self) -> &InputIdentity
pub const fn facts_identity(&self) -> &InputIdentity
SHA-256 plus byte count of the unchanged #464 facts preimage.
Sourcepub fn facts(&self) -> &[EngineProfileFactV1]
pub fn facts(&self) -> &[EngineProfileFactV1]
Complete typed fact inventory in stable-id order.
Sourcepub fn setting_descriptors(&self) -> &[EngineSettingDescriptorV1]
pub fn setting_descriptors(&self) -> &[EngineSettingDescriptorV1]
Complete descriptor inventory in stable-id order.
Sourcepub fn primary_sources(&self) -> &[EnginePrimarySourceV1]
pub fn primary_sources(&self) -> &[EnginePrimarySourceV1]
Primary-source rows in stable-id order.
Sourcepub fn fact(&self, id: EngineFactIdV1) -> Option<&EngineProfileFactV1>
pub fn fact(&self, id: EngineFactIdV1) -> Option<&EngineProfileFactV1>
Look up one fact by stable id.
Sourcepub fn accepts_format(&self, format: SourceFormatV1) -> bool
pub fn accepts_format(&self, format: SourceFormatV1) -> bool
Whether the exact embedded accepted_inputs fact accepts format.
Sourcepub fn setting_descriptor(
&self,
id: EngineSettingIdV1,
) -> Option<&EngineSettingDescriptorV1>
pub fn setting_descriptor( &self, id: EngineSettingIdV1, ) -> Option<&EngineSettingDescriptorV1>
Look up one setting descriptor, including not-applicable descriptors.
Sourcepub fn source(&self, id: &str) -> Option<&EnginePrimarySourceV1>
pub fn source(&self, id: &str) -> Option<&EnginePrimarySourceV1>
Look up one primary source by stable id.
Sourcepub fn validate(&self) -> Result<(), EngineContractError>
pub fn validate(&self) -> Result<(), EngineContractError>
Revalidate all profile semantics and its identity.
§Errors
Returns EngineContractError for any invalid wire or cross-reference.
Trait Implementations§
Source§impl Clone for ResolvedEngineProfileV1
impl Clone for ResolvedEngineProfileV1
Source§fn clone(&self) -> ResolvedEngineProfileV1
fn clone(&self) -> ResolvedEngineProfileV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more