pub struct Property {
pub property_name: String,
pub property_value: String,
pub property_type: String,
pub data_type: Option<String>,
pub data_type_mixed: bool,
pub values: Option<Vec<String>>,
}Expand description
Single property value.
Fields§
§property_name: StringProperty name.
property_value: StringResolved property value in its canonical string form (a decoded string,
"true"/"false", or a number rendered as text — NOT JSON-quoted). The
client re-materialises the native value using property_type.
property_type: StringValue KIND: "string" | "boolean" | "logical" | "integer" |
"real" | "null". Mirrors the WASM path’s parsePropertyValue so the
client can reconstruct the same PropertyValueType and JS value.
data_type: Option<String>Raw IFC measure/value type tag (e.g. "IFCLENGTHMEASURE", "IFCLABEL"),
when the STEP value was a typed wrapper. Drives display-unit conversion
(issue #1573) — the client maps it onto the property entry’s dataType.
None for untyped values.
data_type_mixed: boolIfcPropertyTableValue: its columns differ in type by design, so there
is no single data_type. The client carries this as dataTypeMixed,
the one explicit exemption from an IDS dataType check; an absent
data_type anywhere else means “unknown” and fails one (#5224).
values: Option<Vec<String>>Candidate value list for multi-valued properties (enumerated / bounded /
list / table), mirroring the WASM parsePropertyValue().values — IDS
facet checks pass when ANY candidate matches (issue #1766). None for
single/reference values and when the list filters down to empty (the
client treats empty as absent).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Property
impl<'de> Deserialize<'de> for Property
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.