#[non_exhaustive]pub struct ExactPredefinedSet {
pub source: ExactSource,
pub set_id: EntityId,
pub entity: Arc<str>,
pub name: Option<Arc<str>>,
pub attributes: Vec<ExactPropertyEntry>,
}Expand description
A predefined property set assigned to an object, with every attribute its entity declares itself resolved exactly.
Returned by exact_predefined_sets.
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.source: ExactSourceWhether the set is assigned to the occurrence or inherited from its
IfcTypeObject (an IfcDoorType, or an IFC2X3 IfcDoorStyle); a
queried type object’s own sets are Type of that object.
set_id: EntityIdEntity id of the set.
entity: Arc<str>The set’s entity in the release’s spelling, e.g.
IfcDoorPanelProperties.
name: Option<Arc<str>>The set’s Name, if stated.
attributes: Vec<ExactPropertyEntry>Each attribute the entity declares below IfcPropertySetDefinition,
in schema order, named as the schema names it (PanelWidth). Each
ExactProperty has the set’s id as both set_id and
property_id, the attribute’s declared type as value_type, no
unit_id, and property_set equal to name or else entity.
Implementations§
Source§impl ExactPredefinedSet
impl ExactPredefinedSet
Sourcepub fn attribute(&self, name: &str) -> Option<&ExactProperty>
pub fn attribute(&self, name: &str) -> Option<&ExactProperty>
The attribute named name (schema spelling, e.g. LiningDepth), or
None when the entity declares no such attribute in this release.
Trait Implementations§
Source§impl Clone for ExactPredefinedSet
impl Clone for ExactPredefinedSet
Source§fn clone(&self) -> ExactPredefinedSet
fn clone(&self) -> ExactPredefinedSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more