#[non_exhaustive]pub struct ColumnDraft<'a> {
pub identifier: Option<&'a str>,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub unit: Option<EntityId>,
pub reference_path: Option<EntityId>,
}Expand description
Attributes of an IfcTableColumn.
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.identifier: Option<&'a str>Identifier.
name: Option<&'a str>Name.
description: Option<&'a str>Description.
unit: Option<EntityId>Unit, an IfcUnit reference.
reference_path: Option<EntityId>ReferencePath, an IfcReference reference.
Taken as an id rather than modelled here: IfcReference is a
property-path concept this crate does not own.
Implementations§
Source§impl<'a> ColumnDraft<'a>
impl<'a> ColumnDraft<'a>
Sourcepub fn identifier(self, value: &'a str) -> Self
pub fn identifier(self, value: &'a str) -> Self
Sets Self::identifier: Identifier.
Sourcepub fn name(self, value: &'a str) -> Self
pub fn name(self, value: &'a str) -> Self
Sets Self::name: Name.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Self::description: Description.
Sourcepub fn unit(self, value: EntityId) -> Self
pub fn unit(self, value: EntityId) -> Self
Sets Self::unit: Unit, an IfcUnit reference.
Sourcepub fn reference_path(self, value: EntityId) -> Self
pub fn reference_path(self, value: EntityId) -> Self
Sets Self::reference_path: ReferencePath, an IfcReference reference.
Trait Implementations§
Source§impl<'a> Clone for ColumnDraft<'a>
impl<'a> Clone for ColumnDraft<'a>
impl<'a> Copy for ColumnDraft<'a>
Source§impl<'a> Debug for ColumnDraft<'a>
impl<'a> Debug for ColumnDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ColumnDraft<'a>
impl<'a> RefUnwindSafe for ColumnDraft<'a>
impl<'a> Send for ColumnDraft<'a>
impl<'a> Sync for ColumnDraft<'a>
impl<'a> Unpin for ColumnDraft<'a>
impl<'a> UnsafeUnpin for ColumnDraft<'a>
impl<'a> UnwindSafe for ColumnDraft<'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