pub struct DesignConfiguration {Show 13 fields
pub id: ConfigurationId,
pub ordinal: u32,
pub active: bool,
pub source_index: Option<u32>,
pub name: String,
pub material: Option<String>,
pub properties: BTreeMap<String, String>,
pub parameter_overrides: BTreeMap<ParameterId, String>,
pub suppressed_features: Vec<FeatureId>,
pub bodies: ConfigurationBodies,
pub parameter_values: BTreeMap<ParameterId, ParameterValue>,
pub feature_states: BTreeMap<FeatureId, ConfigurationFeatureState>,
pub native_ref: Option<String>,
}Expand description
A named parametric model variant.
Fields§
§id: ConfigurationIdGlobally unique configuration id.
ordinal: u32Position in the design configuration list.
active: boolWhether this configuration supplies the document’s active model state.
source_index: Option<u32>Format-native configuration slot, when distinct from list order.
name: StringSource display name.
material: Option<String>Material override, when present.
properties: BTreeMap<String, String>Configuration-local named values not otherwise represented.
parameter_overrides: BTreeMap<ParameterId, String>Configuration-specific source expressions keyed by the overridden parameter.
suppressed_features: Vec<FeatureId>Features suppressed when this configuration is active.
bodies: ConfigurationBodiesBodies present when this configuration is active.
parameter_values: BTreeMap<ParameterId, ParameterValue>Evaluated parameter state when this configuration is active.
feature_states: BTreeMap<FeatureId, ConfigurationFeatureState>Evaluated feature operation state when this configuration is active.
native_ref: Option<String>Identifier of the full-fidelity record in a native namespace.
Trait Implementations§
Source§impl Clone for DesignConfiguration
impl Clone for DesignConfiguration
Source§fn clone(&self) -> DesignConfiguration
fn clone(&self) -> DesignConfiguration
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 DesignConfiguration
impl Debug for DesignConfiguration
Source§impl<'de> Deserialize<'de> for DesignConfiguration
impl<'de> Deserialize<'de> for DesignConfiguration
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
Source§impl JsonSchema for DesignConfiguration
impl JsonSchema for DesignConfiguration
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DesignConfiguration
impl PartialEq for DesignConfiguration
Source§impl Serialize for DesignConfiguration
impl Serialize for DesignConfiguration
impl StructuralPartialEq for DesignConfiguration
Auto Trait Implementations§
impl Freeze for DesignConfiguration
impl RefUnwindSafe for DesignConfiguration
impl Send for DesignConfiguration
impl Sync for DesignConfiguration
impl Unpin for DesignConfiguration
impl UnsafeUnpin for DesignConfiguration
impl UnwindSafe for DesignConfiguration
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