pub struct ResolvedEngineSettingsV2 { /* private fields */ }Expand description
Fully materialized bounded-prefix V2 engine settings.
V2 preserves the ordinary V1 row spelling while committing to coverage and bounded work in a separate canonical identity. Thus an exact 4,096-row input cannot collide with a larger input sharing that prefix.
Implementations§
Source§impl ResolvedEngineSettingsV2
impl ResolvedEngineSettingsV2
Sourcepub fn new(
profile: &ResolvedEngineProfileV1,
document_settings: Vec<EngineSettingRowV1>,
clips: Vec<EngineClipSettingsV1>,
clip_coverage: ResolvedEngineSettingsCoverageV2,
work: ResolvedEngineSettingsWorkV2,
) -> Result<Self, EngineContractError>
pub fn new( profile: &ResolvedEngineProfileV1, document_settings: Vec<EngineSettingRowV1>, clips: Vec<EngineClipSettingsV1>, clip_coverage: ResolvedEngineSettingsCoverageV2, work: ResolvedEngineSettingsWorkV2, ) -> Result<Self, EngineContractError>
Construct V2 settings from a fully materialized retained prefix.
Sourcepub fn contract_id(&self) -> &str
pub fn contract_id(&self) -> &str
Contract id carried in schema.
Sourcepub const fn settings_identity(&self) -> &InputIdentity
pub const fn settings_identity(&self) -> &InputIdentity
Identity committing to prefix, coverage, and work.
Sourcepub fn document_settings(&self) -> &[EngineSettingRowV1]
pub fn document_settings(&self) -> &[EngineSettingRowV1]
Stable-id-ordered document settings.
Sourcepub fn clips(&self) -> &[EngineClipSettingsV1]
pub fn clips(&self) -> &[EngineClipSettingsV1]
Canonically ordered retained clip rows.
Sourcepub fn document_setting(
&self,
id: EngineSettingIdV1,
) -> Option<&EngineSettingValueV1>
pub fn document_setting( &self, id: EngineSettingIdV1, ) -> Option<&EngineSettingValueV1>
Look up one retained 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 retained clip row by source ordinal and exact name.
Sourcepub const fn clip_coverage(&self) -> &ResolvedEngineSettingsCoverageV2
pub const fn clip_coverage(&self) -> &ResolvedEngineSettingsCoverageV2
Explicit actual-clip coverage.
Sourcepub const fn work(&self) -> &ResolvedEngineSettingsWorkV2
pub const fn work(&self) -> &ResolvedEngineSettingsWorkV2
Bounded resolution work.
Sourcepub fn validate_against(
&self,
profile: &ResolvedEngineProfileV1,
) -> Result<(), EngineContractError>
pub fn validate_against( &self, profile: &ResolvedEngineProfileV1, ) -> Result<(), EngineContractError>
Validate settings, coverage/work, and the V2 identity against profile facts.
Trait Implementations§
Source§impl Clone for ResolvedEngineSettingsV2
impl Clone for ResolvedEngineSettingsV2
Source§fn clone(&self) -> ResolvedEngineSettingsV2
fn clone(&self) -> ResolvedEngineSettingsV2
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 ResolvedEngineSettingsV2
impl Debug for ResolvedEngineSettingsV2
Source§impl<'de> Deserialize<'de> for ResolvedEngineSettingsV2
impl<'de> Deserialize<'de> for ResolvedEngineSettingsV2
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 ResolvedEngineSettingsV2
Source§impl PartialEq for ResolvedEngineSettingsV2
impl PartialEq for ResolvedEngineSettingsV2
Source§impl Serialize for ResolvedEngineSettingsV2
impl Serialize for ResolvedEngineSettingsV2
impl StructuralPartialEq for ResolvedEngineSettingsV2
Auto Trait Implementations§
impl Freeze for ResolvedEngineSettingsV2
impl RefUnwindSafe for ResolvedEngineSettingsV2
impl Send for ResolvedEngineSettingsV2
impl Sync for ResolvedEngineSettingsV2
impl Unpin for ResolvedEngineSettingsV2
impl UnsafeUnpin for ResolvedEngineSettingsV2
impl UnwindSafe for ResolvedEngineSettingsV2
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