#[non_exhaustive]pub struct ExternalSpatialDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub object_type: Option<&'a str>,
pub placement: Option<EntityId>,
pub representation: Option<EntityId>,
pub long_name: Option<&'a str>,
pub predefined_type: Option<&'a str>,
}Expand description
Attributes of an IfcExternalSpatialElement.
#[non_exhaustive]: build it with ExternalSpatialDraft::new and the
setters.
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.name: Option<&'a str>Name.
description: Option<&'a str>Description.
object_type: Option<&'a str>ObjectType. Required when predefined_type is USERDEFINED.
placement: Option<EntityId>ObjectPlacement.
representation: Option<EntityId>Representation.
long_name: Option<&'a str>LongName.
predefined_type: Option<&'a str>PredefinedType, an IfcExternalSpatialElementTypeEnum token.
Implementations§
Source§impl<'a> ExternalSpatialDraft<'a>
impl<'a> ExternalSpatialDraft<'a>
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Set Description.
Sourcepub fn object_type(self, value: &'a str) -> Self
pub fn object_type(self, value: &'a str) -> Self
Set ObjectType; required when predefined_type is USERDEFINED.
Sourcepub fn representation(self, value: EntityId) -> Self
pub fn representation(self, value: EntityId) -> Self
Set Representation.
Sourcepub fn predefined_type(self, value: &'a str) -> Self
pub fn predefined_type(self, value: &'a str) -> Self
Set PredefinedType, an IfcExternalSpatialElementTypeEnum token.
Trait Implementations§
Source§impl<'a> Clone for ExternalSpatialDraft<'a>
impl<'a> Clone for ExternalSpatialDraft<'a>
impl<'a> Copy for ExternalSpatialDraft<'a>
Source§impl<'a> Debug for ExternalSpatialDraft<'a>
impl<'a> Debug for ExternalSpatialDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExternalSpatialDraft<'a>
impl<'a> RefUnwindSafe for ExternalSpatialDraft<'a>
impl<'a> Send for ExternalSpatialDraft<'a>
impl<'a> Sync for ExternalSpatialDraft<'a>
impl<'a> Unpin for ExternalSpatialDraft<'a>
impl<'a> UnsafeUnpin for ExternalSpatialDraft<'a>
impl<'a> UnwindSafe for ExternalSpatialDraft<'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