pub struct ResolvedEngineSettingsV1 { /* private fields */ }Expand description
Fully materialized, registry-independent V1 engine settings.
Implementations§
Source§impl ResolvedEngineSettingsV1
impl ResolvedEngineSettingsV1
Sourcepub fn new(
profile: &ResolvedEngineProfileV1,
document_settings: Vec<EngineSettingRowV1>,
clips: Vec<EngineClipSettingsV1>,
) -> Result<Self, EngineContractError>
pub fn new( profile: &ResolvedEngineProfileV1, document_settings: Vec<EngineSettingRowV1>, clips: Vec<EngineClipSettingsV1>, ) -> Result<Self, EngineContractError>
Construct fully materialized settings against one exact embedded profile.
Repeated equal clip names are retained and identity-significant.
§Errors
Returns EngineContractError for a bound, ordering, domain, scope,
applicability, or required-value violation.
Sourcepub fn contract_id(&self) -> &str
pub fn contract_id(&self) -> &str
Contract id carried in the schema field.
Sourcepub const fn settings_identity(&self) -> &InputIdentity
pub const fn settings_identity(&self) -> &InputIdentity
SHA-256 plus byte count of the unchanged #464 settings preimage.
Sourcepub fn document_settings(&self) -> &[EngineSettingRowV1]
pub fn document_settings(&self) -> &[EngineSettingRowV1]
Stable-id-ordered fully materialized document settings.
Sourcepub fn clips(&self) -> &[EngineClipSettingsV1]
pub fn clips(&self) -> &[EngineClipSettingsV1]
Lexical-name-ordered actual clip rows, retaining repeated equal names.
Sourcepub fn document_setting(
&self,
id: EngineSettingIdV1,
) -> Option<&EngineSettingValueV1>
pub fn document_setting( &self, id: EngineSettingIdV1, ) -> Option<&EngineSettingValueV1>
Look up one document setting.
Sourcepub fn clip_row(
&self,
ordinal: usize,
clip_name: &str,
) -> Option<&EngineClipSettingsV1>
pub fn clip_row( &self, ordinal: usize, clip_name: &str, ) -> Option<&EngineClipSettingsV1>
Look up one clip row by its identity-significant ordinal and exact name.
Sourcepub fn validate_against(
&self,
profile: &ResolvedEngineProfileV1,
) -> Result<(), EngineContractError>
pub fn validate_against( &self, profile: &ResolvedEngineProfileV1, ) -> Result<(), EngineContractError>
Validate structure, materialization, and identity against one profile.
§Errors
Returns EngineContractError for any invalid wire, cross-reference,
or canonical identity.
Trait Implementations§
Source§impl Clone for ResolvedEngineSettingsV1
impl Clone for ResolvedEngineSettingsV1
Source§fn clone(&self) -> ResolvedEngineSettingsV1
fn clone(&self) -> ResolvedEngineSettingsV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more