pub struct ResolvedEngineSettingsV3 { /* private fields */ }Expand description
Bounded, origin-bearing resolved settings used by profile facts V2.
Implementations§
Source§impl ResolvedEngineSettingsV3
impl ResolvedEngineSettingsV3
Sourcepub fn new(
profile: &ResolvedEngineProfileV2,
source_format: SourceFormatV1,
document_settings: Vec<EngineSettingRowV3>,
clips: Vec<EngineClipSettingsV3>,
clip_coverage: ResolvedEngineSettingsCoverageV2,
work: ResolvedEngineSettingsWorkV2,
) -> Result<Self, EngineContractError>
pub fn new( profile: &ResolvedEngineProfileV2, source_format: SourceFormatV1, document_settings: Vec<EngineSettingRowV3>, clips: Vec<EngineClipSettingsV3>, clip_coverage: ResolvedEngineSettingsCoverageV2, work: ResolvedEngineSettingsWorkV2, ) -> Result<Self, EngineContractError>
Construct complete or explicit-partial settings and bind them to a profile.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable contract id.
Sourcepub const fn settings_identity(&self) -> &InputIdentity
pub const fn settings_identity(&self) -> &InputIdentity
Canonical settings identity.
Sourcepub const fn source_format(&self) -> SourceFormatV1
pub const fn source_format(&self) -> SourceFormatV1
Exact source format whose applicable descriptors were materialized.
Sourcepub fn document_settings(&self) -> &[EngineSettingRowV3]
pub fn document_settings(&self) -> &[EngineSettingRowV3]
Document-scoped rows.
Sourcepub fn clips(&self) -> &[EngineClipSettingsV3]
pub fn clips(&self) -> &[EngineClipSettingsV3]
Clip-scoped rows in source-ordinal order.
Sourcepub const fn clip_coverage(&self) -> &ResolvedEngineSettingsCoverageV2
pub const fn clip_coverage(&self) -> &ResolvedEngineSettingsCoverageV2
Exact/partial clip coverage.
Sourcepub const fn work(&self) -> ResolvedEngineSettingsWorkV2
pub const fn work(&self) -> ResolvedEngineSettingsWorkV2
Bounded work counters.
Sourcepub fn document_setting(
&self,
id: EngineSettingIdV2,
) -> Option<&EngineSettingRowV3>
pub fn document_setting( &self, id: EngineSettingIdV2, ) -> Option<&EngineSettingRowV3>
Look up one document setting.
Sourcepub fn clip_row(
&self,
ordinal: u64,
name: &str,
) -> Option<&EngineClipSettingsV3>
pub fn clip_row( &self, ordinal: u64, name: &str, ) -> Option<&EngineClipSettingsV3>
Look up one exact clip row.
Sourcepub fn validate_against(
&self,
profile: &ResolvedEngineProfileV2,
) -> Result<(), EngineContractError>
pub fn validate_against( &self, profile: &ResolvedEngineProfileV2, ) -> Result<(), EngineContractError>
Validate against the exact profile used by the identity.
Trait Implementations§
Source§impl Clone for ResolvedEngineSettingsV3
impl Clone for ResolvedEngineSettingsV3
Source§fn clone(&self) -> ResolvedEngineSettingsV3
fn clone(&self) -> ResolvedEngineSettingsV3
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 ResolvedEngineSettingsV3
impl Debug for ResolvedEngineSettingsV3
Source§impl<'de> Deserialize<'de> for ResolvedEngineSettingsV3
impl<'de> Deserialize<'de> for ResolvedEngineSettingsV3
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 ResolvedEngineSettingsV3
Source§impl PartialEq for ResolvedEngineSettingsV3
impl PartialEq for ResolvedEngineSettingsV3
Source§impl Serialize for ResolvedEngineSettingsV3
impl Serialize for ResolvedEngineSettingsV3
impl StructuralPartialEq for ResolvedEngineSettingsV3
Auto Trait Implementations§
impl Freeze for ResolvedEngineSettingsV3
impl RefUnwindSafe for ResolvedEngineSettingsV3
impl Send for ResolvedEngineSettingsV3
impl Sync for ResolvedEngineSettingsV3
impl Unpin for ResolvedEngineSettingsV3
impl UnsafeUnpin for ResolvedEngineSettingsV3
impl UnwindSafe for ResolvedEngineSettingsV3
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