#[non_exhaustive]pub enum SetTemplateKind {
Property {
set_type: PropertySetType,
properties: Vec<PropertyTemplate>,
},
Quantity {
set_type: QuantitySetType,
method_of_measurement: Option<String>,
quantities: Vec<QuantityTemplate>,
},
}Expand description
Set-level PSD or QTO payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Property
An IfcPropertySetTemplate: TemplateType category plus its property templates.
Fields
§
set_type: PropertySetTypeApplicability mode declared by TemplateType.
§
properties: Vec<PropertyTemplate>Property templates in publication order.
Quantity
An IfcElementQuantity template: TemplateType category, measurement
method, and quantity templates.
Fields
§
set_type: QuantitySetTypeApplicability mode declared by TemplateType.
§
method_of_measurement: Option<String>Free-text MethodOfMeasurement, absent when the publication omitted it.
§
quantities: Vec<QuantityTemplate>Quantity templates in publication order.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for SetTemplateKind
impl<'__de, __Context> BorrowDecode<'__de, __Context> for SetTemplateKind
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>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for SetTemplateKind
impl Clone for SetTemplateKind
Source§fn clone(&self) -> SetTemplateKind
fn clone(&self) -> SetTemplateKind
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 SetTemplateKind
impl Debug for SetTemplateKind
Source§impl<__Context> Decode<__Context> for SetTemplateKind
impl<__Context> Decode<__Context> for SetTemplateKind
Source§impl Encode for SetTemplateKind
impl Encode for SetTemplateKind
impl Eq for SetTemplateKind
Source§impl PartialEq for SetTemplateKind
impl PartialEq for SetTemplateKind
impl StructuralPartialEq for SetTemplateKind
Auto Trait Implementations§
impl Freeze for SetTemplateKind
impl RefUnwindSafe for SetTemplateKind
impl Send for SetTemplateKind
impl Sync for SetTemplateKind
impl Unpin for SetTemplateKind
impl UnsafeUnpin for SetTemplateKind
impl UnwindSafe for SetTemplateKind
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