#[non_exhaustive]pub struct TableValueDraft<'a> {
pub name: &'a str,
pub specification: Option<&'a str>,
pub defining: Option<Vec<Value>>,
pub defined: Option<Vec<Value>>,
pub defining_unit: Option<EntityId>,
pub defined_unit: Option<EntityId>,
pub expression: Option<&'a str>,
pub interpolation: Option<&'a str>,
}Expand description
Authored fields for IfcPropertyTableValue.
A struct rather than a parameter list: the entity carries two columns, two units and two free-text fields, and positional arguments of the same types are easy to transpose silently.
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.name: &'a strName. Required, and the key every lookup uses.
specification: Option<&'a str>Specification.
defining: Option<Vec<Value>>DefiningValues, the independent variable.
defined: Option<Vec<Value>>DefinedValues, the dependent variable.
defining_unit: Option<EntityId>DefiningUnit.
defined_unit: Option<EntityId>DefinedUnit.
expression: Option<&'a str>Expression, the closed form when one exists.
interpolation: Option<&'a str>CurveInterpolation, an IfcCurveInterpolationEnum token.
Implementations§
Source§impl<'a> TableValueDraft<'a>
impl<'a> TableValueDraft<'a>
Sourcepub fn new(name: &'a str) -> Self
pub fn new(name: &'a str) -> Self
Starts a draft from its required name; every other field is unset.
Sourcepub fn specification(self, value: &'a str) -> Self
pub fn specification(self, value: &'a str) -> Self
Sets specification.
Specification.
Sourcepub fn defining(self, value: Vec<Value>) -> Self
pub fn defining(self, value: Vec<Value>) -> Self
Sets defining.
DefiningValues, the independent variable.
Sourcepub fn defined(self, value: Vec<Value>) -> Self
pub fn defined(self, value: Vec<Value>) -> Self
Sets defined.
DefinedValues, the dependent variable.
Sourcepub fn defining_unit(self, value: EntityId) -> Self
pub fn defining_unit(self, value: EntityId) -> Self
Sets defining_unit.
DefiningUnit.
Sourcepub fn defined_unit(self, value: EntityId) -> Self
pub fn defined_unit(self, value: EntityId) -> Self
Sets defined_unit.
DefinedUnit.
Sourcepub fn expression(self, value: &'a str) -> Self
pub fn expression(self, value: &'a str) -> Self
Sets expression.
Expression, the closed form when one exists.
Sourcepub fn interpolation(self, value: &'a str) -> Self
pub fn interpolation(self, value: &'a str) -> Self
Sets interpolation.
CurveInterpolation, an IfcCurveInterpolationEnum token.