#[non_exhaustive]pub struct ReferenceDraft<'a> {
pub type_identifier: Option<&'a str>,
pub attribute_identifier: Option<&'a str>,
pub instance_name: Option<&'a str>,
pub list_positions: &'a [i64],
pub inner_reference: Option<EntityId>,
}Expand description
Draft for one IfcReference: a path into another entity’s attributes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_identifier: Option<&'a str>TypeIdentifier, the referenced entity’s type name.
attribute_identifier: Option<&'a str>AttributeIdentifier, the attribute being addressed.
instance_name: Option<&'a str>InstanceName, naming the addressed instance.
list_positions: &'a [i64]ListPositions, 1-based indices into list-valued attributes.
inner_reference: Option<EntityId>InnerReference, the next step along the path.
Implementations§
Source§impl<'a> ReferenceDraft<'a>
impl<'a> ReferenceDraft<'a>
Sourcepub fn type_identifier(self, value: &'a str) -> Self
pub fn type_identifier(self, value: &'a str) -> Self
Sets type_identifier: TypeIdentifier, the referenced entity’s type
name.
Sourcepub fn attribute_identifier(self, value: &'a str) -> Self
pub fn attribute_identifier(self, value: &'a str) -> Self
Sets attribute_identifier: AttributeIdentifier, the attribute being
addressed.
Sourcepub fn instance_name(self, value: &'a str) -> Self
pub fn instance_name(self, value: &'a str) -> Self
Sets instance_name: InstanceName, naming the addressed instance.
Sourcepub fn list_positions(self, value: &'a [i64]) -> Self
pub fn list_positions(self, value: &'a [i64]) -> Self
Sets list_positions: ListPositions, 1-based indices into list-valued
attributes.
Sourcepub fn inner_reference(self, value: EntityId) -> Self
pub fn inner_reference(self, value: EntityId) -> Self
Sets inner_reference: InnerReference, the next step along the path.
Trait Implementations§
Source§impl<'a> Clone for ReferenceDraft<'a>
impl<'a> Clone for ReferenceDraft<'a>
impl<'a> Copy for ReferenceDraft<'a>
Source§impl<'a> Debug for ReferenceDraft<'a>
impl<'a> Debug for ReferenceDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReferenceDraft<'a>
impl<'a> RefUnwindSafe for ReferenceDraft<'a>
impl<'a> Send for ReferenceDraft<'a>
impl<'a> Sync for ReferenceDraft<'a>
impl<'a> Unpin for ReferenceDraft<'a>
impl<'a> UnsafeUnpin for ReferenceDraft<'a>
impl<'a> UnwindSafe for ReferenceDraft<'a>
Blanket Implementations§
Source§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
Mutably borrows from an owned value. Read more