pub struct DesignParameter {
pub id: ParameterId,
pub owner: Option<FeatureId>,
pub ordinal: u32,
pub name: String,
pub expression: String,
pub display: Option<DimensionDisplay>,
pub value: Option<ParameterValue>,
pub dependencies: Vec<ParameterId>,
pub properties: BTreeMap<String, String>,
pub pmi: Option<ParameterPmi>,
pub native_ref: Option<String>,
}Expand description
A named design expression, optionally owned by a construction feature.
Fields§
§id: ParameterIdGlobally unique parameter id.
owner: Option<FeatureId>Feature that consumes this parameter; absent for a document parameter.
ordinal: u32Position among parameters in the same ownership scope.
name: StringSource parameter name.
expression: StringLiteral or expression text used by the source system.
display: Option<DimensionDisplay>Geometric display semantics carried by the dimension expression.
value: Option<ParameterValue>Evaluated scalar when available.
dependencies: Vec<ParameterId>Parameters referenced by expression, in source expression order.
properties: BTreeMap<String, String>Source dimension properties not represented by another field.
pmi: Option<ParameterPmi>Product-manufacturing dimension semantics, when present.
native_ref: Option<String>Identifier of the full-fidelity source parameter record.
Trait Implementations§
Source§impl Clone for DesignParameter
impl Clone for DesignParameter
Source§fn clone(&self) -> DesignParameter
fn clone(&self) -> DesignParameter
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 DesignParameter
impl Debug for DesignParameter
Source§impl<'de> Deserialize<'de> for DesignParameter
impl<'de> Deserialize<'de> for DesignParameter
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 DesignParameter
impl JsonSchema for DesignParameter
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 DesignParameter
impl PartialEq for DesignParameter
Source§impl Serialize for DesignParameter
impl Serialize for DesignParameter
impl StructuralPartialEq for DesignParameter
Auto Trait Implementations§
impl Freeze for DesignParameter
impl RefUnwindSafe for DesignParameter
impl Send for DesignParameter
impl Sync for DesignParameter
impl Unpin for DesignParameter
impl UnsafeUnpin for DesignParameter
impl UnwindSafe for DesignParameter
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