pub struct Objective<'m> { /* private fields */ }Expand description
Strict borrowed projection, read against one release.
Implementations§
Source§impl<'m> Objective<'m>
impl<'m> Objective<'m>
Sourcepub fn try_new(
id: EntityId,
entity: &'m Entity,
release: SchemaVersion,
) -> ConstraintResult<Self>
pub fn try_new( id: EntityId, entity: &'m Entity, release: SchemaVersion, ) -> ConstraintResult<Self>
Construct from an entity of the exact expected kind, read
against release.
ConstraintView binds the model’s declared release; use
this when the release is known some other way.
§Errors
WrongEntityType for another entity, UnsupportedSchema
for a release this crate is not verified against (IFC4X1,
IFC4X2), and EntityNotInSchema for an entity the release
does not declare.
Sourcepub const fn release(self) -> SchemaVersion
pub const fn release(self) -> SchemaVersion
The release this projection reads against.
Source§impl<'m> Objective<'m>
impl<'m> Objective<'m>
Sourcepub fn name(self) -> ConstraintResult<&'m str>
pub fn name(self) -> ConstraintResult<&'m str>
Constraint name.
Sourcepub fn description(self) -> ConstraintResult<Option<&'m str>>
pub fn description(self) -> ConstraintResult<Option<&'m str>>
Optional description.
Sourcepub fn grade(self) -> ConstraintResult<ConstraintGrade>
pub fn grade(self) -> ConstraintResult<ConstraintGrade>
Typed constraint grade.
Sourcepub fn source(self) -> ConstraintResult<Option<&'m str>>
pub fn source(self) -> ConstraintResult<Option<&'m str>>
Optional source label.
Sourcepub fn creating_actor(self) -> ConstraintResult<Option<EntityId>>
pub fn creating_actor(self) -> ConstraintResult<Option<EntityId>>
Optional creating actor.
Sourcepub fn creation_time(self) -> ConstraintResult<Option<&'m str>>
pub fn creation_time(self) -> ConstraintResult<Option<&'m str>>
Optional creation time, IFC4/IFC4X3 IfcDateTime text. An
IFC2X3 IfcDateTimeSelect record is StructuredValue with
the record’s id, never read as text.
Sourcepub fn user_defined_grade(self) -> ConstraintResult<Option<&'m str>>
pub fn user_defined_grade(self) -> ConstraintResult<Option<&'m str>>
Optional user-defined grade.
Source§impl<'m> Objective<'m>
impl<'m> Objective<'m>
Sourcepub fn benchmark_values(self) -> ConstraintResult<Option<Vec<EntityId>>>
pub fn benchmark_values(self) -> ConstraintResult<Option<Vec<EntityId>>>
Optional ordered benchmark constraints.
BenchmarkValues is a LIST from IFC4 on: the authored order is
significant and returned unchanged, never sorted or deduplicated.
IFC2X3 declares a single IfcMetric, returned as a one-element list.
Sourcepub fn logical_aggregator(self) -> ConstraintResult<Option<LogicalOperator>>
pub fn logical_aggregator(self) -> ConstraintResult<Option<LogicalOperator>>
Optional typed logical aggregator. NotInSchema in IFC2X3, whose
ResultValues in that position is an IfcMetric, not an operator.
Sourcepub fn qualifier(self) -> ConstraintResult<ObjectiveQualifier>
pub fn qualifier(self) -> ConstraintResult<ObjectiveQualifier>
Typed objective qualifier.
Sourcepub fn user_defined_qualifier(self) -> ConstraintResult<Option<&'m str>>
pub fn user_defined_qualifier(self) -> ConstraintResult<Option<&'m str>>
Optional user-defined objective qualifier.