#[non_exhaustive]pub struct ProjectLibraryDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub object_type: Option<&'a str>,
pub long_name: Option<&'a str>,
pub phase: Option<&'a str>,
pub units: Option<EntityId>,
}Expand description
Attributes of an IfcProjectLibrary.
#[non_exhaustive]: build it with ProjectLibraryDraft::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.
long_name: Option<&'a str>LongName.
phase: Option<&'a str>Phase.
units: Option<EntityId>UnitsInContext, an IfcUnitAssignment.
Implementations§
Source§impl<'a> ProjectLibraryDraft<'a>
impl<'a> ProjectLibraryDraft<'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.
Trait Implementations§
Source§impl<'a> Clone for ProjectLibraryDraft<'a>
impl<'a> Clone for ProjectLibraryDraft<'a>
impl<'a> Copy for ProjectLibraryDraft<'a>
Source§impl<'a> Debug for ProjectLibraryDraft<'a>
impl<'a> Debug for ProjectLibraryDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProjectLibraryDraft<'a>
impl<'a> RefUnwindSafe for ProjectLibraryDraft<'a>
impl<'a> Send for ProjectLibraryDraft<'a>
impl<'a> Sync for ProjectLibraryDraft<'a>
impl<'a> Unpin for ProjectLibraryDraft<'a>
impl<'a> UnsafeUnpin for ProjectLibraryDraft<'a>
impl<'a> UnwindSafe for ProjectLibraryDraft<'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