#[non_exhaustive]pub enum PropertyKind {
SingleValue {
data_type: PropertyDataType,
},
BoundedValue {
data_type: PropertyDataType,
},
EnumeratedValue {
enumeration_name: Option<String>,
data_type: Option<PropertyDataType>,
values: Vec<String>,
constants: Vec<EnumerationConstant>,
},
ListValue {
data_type: PropertyDataType,
},
ReferenceValue {
reference_type: String,
},
TableValue {
defining_type: PropertyDataType,
defined_type: PropertyDataType,
expression: Option<String>,
},
Complex {
usage_name: String,
properties: Vec<PropertyTemplate>,
},
}Expand description
PSD property value form, mirroring IfcSimplePropertyTemplateTypeEnum
plus the IfcComplexPropertyTemplate case.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SingleValue
P_SINGLEVALUE: one scalar value of data_type.
Fields
data_type: PropertyDataTypeValue type and unit category for the scalar.
BoundedValue
P_BOUNDEDVALUE: an upper/lower/set-point triple of data_type.
Fields
data_type: PropertyDataTypeValue type and unit category shared by the bound values.
EnumeratedValue
P_ENUMERATEDVALUE: a selection from a fixed list of lexical values
or documented constants.
Fields
data_type: Option<PropertyDataType>Value type and unit category of the enumeration members, absent when the publication left it implicit.
constants: Vec<EnumerationConstant>Documented constants from ConstantList, kept distinct from lexical values.
ListValue
P_LISTVALUE: an ordered list of values of data_type.
Fields
data_type: PropertyDataTypeValue type and unit category shared by every list element.
ReferenceValue
P_REFERENCEVALUE: a reference to another entity of reference_type.
TableValue
P_TABLEVALUE: a lookup table pairing defining_type keys with
defined_type values, optionally constrained by expression.
Fields
defining_type: PropertyDataTypeValue type of the table’s defining (key) column.
defined_type: PropertyDataTypeValue type of the table’s defined (value) column.
Complex
An IfcComplexPropertyTemplate: a named grouping of nested property templates.
Fields
properties: Vec<PropertyTemplate>Nested property templates that make up this grouping.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for PropertyKind
impl<'__de, __Context> BorrowDecode<'__de, __Context> for PropertyKind
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Source§impl Clone for PropertyKind
impl Clone for PropertyKind
Source§fn clone(&self) -> PropertyKind
fn clone(&self) -> PropertyKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more