#[non_exhaustive]pub struct ClassificationReferenceDraft<'a> {
pub location: Option<&'a str>,
pub identification: Option<&'a str>,
pub name: Option<&'a str>,
pub referenced_source: Option<EntityId>,
pub description: Option<&'a str>,
pub sort: Option<&'a str>,
}Expand description
Draft for one IfcClassificationReference.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.location: Option<&'a str>Location (URI) of the reference; at least one of location/identification/name must be given.
identification: Option<&'a str>Identification code within the classification, when stated
(ItemReference in IFC2X3).
name: Option<&'a str>Name of the referenced item, when stated.
referenced_source: Option<EntityId>ReferencedSource: the parent IfcClassification or
IfcClassificationReference (only an IfcClassification in
IFC2X3), when stated.
description: Option<&'a str>Description of the reference, when stated. IFC4 onwards.
sort: Option<&'a str>Sort order token, when stated. IFC4 onwards.
Implementations§
Source§impl<'a> ClassificationReferenceDraft<'a>
impl<'a> ClassificationReferenceDraft<'a>
Sourcepub fn location(self, value: &'a str) -> Self
pub fn location(self, value: &'a str) -> Self
Sets location: Location (URI) of the reference; at least one of
location/identification/name must be given.
Sourcepub fn identification(self, value: &'a str) -> Self
pub fn identification(self, value: &'a str) -> Self
Sets identification: Identification code within the classification,
when stated (ItemReference in IFC2X3).
Sourcepub fn referenced_source(self, value: EntityId) -> Self
pub fn referenced_source(self, value: EntityId) -> Self
Sets referenced_source: ReferencedSource: the parent
IfcClassification or IfcClassificationReference (only an
IfcClassification in IFC2X3), when stated.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets description: Description of the reference, when stated. IFC4
onwards.