pub struct EngineSettingDescriptorV2 { /* private fields */ }Expand description
Immutable V2 setting descriptor with exact source applicability and default.
Implementations§
Source§impl EngineSettingDescriptorV2
impl EngineSettingDescriptorV2
Sourcepub fn new(
id: EngineSettingIdV2,
scope: EngineSettingScopeV1,
domain: EngineSettingDomainV2,
applicable_source_formats: Vec<SourceFormatV1>,
default_value: Option<EngineSettingValueV2>,
) -> Result<Self, EngineContractError>
pub fn new( id: EngineSettingIdV2, scope: EngineSettingScopeV1, domain: EngineSettingDomainV2, applicable_source_formats: Vec<SourceFormatV1>, default_value: Option<EngineSettingValueV2>, ) -> Result<Self, EngineContractError>
Construct one descriptor. An empty format set means not applicable.
Sourcepub const fn id(&self) -> EngineSettingIdV2
pub const fn id(&self) -> EngineSettingIdV2
Stable setting id.
Sourcepub const fn scope(&self) -> EngineSettingScopeV1
pub const fn scope(&self) -> EngineSettingScopeV1
Materialization scope.
Sourcepub const fn domain(&self) -> EngineSettingDomainV2
pub const fn domain(&self) -> EngineSettingDomainV2
Closed value domain.
Sourcepub fn applicable_source_formats(&self) -> &[SourceFormatV1]
pub fn applicable_source_formats(&self) -> &[SourceFormatV1]
Exact source-format applicability.
Sourcepub const fn default_value(&self) -> Option<&EngineSettingValueV2>
pub const fn default_value(&self) -> Option<&EngineSettingValueV2>
Verified profile default, if one exists.
Trait Implementations§
Source§impl Clone for EngineSettingDescriptorV2
impl Clone for EngineSettingDescriptorV2
Source§fn clone(&self) -> EngineSettingDescriptorV2
fn clone(&self) -> EngineSettingDescriptorV2
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 EngineSettingDescriptorV2
impl Debug for EngineSettingDescriptorV2
Source§impl<'de> Deserialize<'de> for EngineSettingDescriptorV2
impl<'de> Deserialize<'de> for EngineSettingDescriptorV2
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 EngineSettingDescriptorV2
Source§impl Ord for EngineSettingDescriptorV2
impl Ord for EngineSettingDescriptorV2
Source§fn cmp(&self, other: &EngineSettingDescriptorV2) -> Ordering
fn cmp(&self, other: &EngineSettingDescriptorV2) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for EngineSettingDescriptorV2
impl PartialOrd for EngineSettingDescriptorV2
impl StructuralPartialEq for EngineSettingDescriptorV2
Auto Trait Implementations§
impl Freeze for EngineSettingDescriptorV2
impl RefUnwindSafe for EngineSettingDescriptorV2
impl Send for EngineSettingDescriptorV2
impl Sync for EngineSettingDescriptorV2
impl Unpin for EngineSettingDescriptorV2
impl UnsafeUnpin for EngineSettingDescriptorV2
impl UnwindSafe for EngineSettingDescriptorV2
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