#[non_exhaustive]pub struct LibraryDraft<'a> {
pub name: &'a str,
pub version: Option<&'a str>,
pub publisher: Option<EntityId>,
pub version_date: Option<&'a str>,
pub location: Option<&'a str>,
pub description: Option<&'a str>,
}Expand description
Draft for one IfcLibraryInformation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'a strRequired Name of the library.
version: Option<&'a str>Version identifier, when stated.
publisher: Option<EntityId>Publisher: an IfcActorSelect (only an IfcOrganization in
IFC2X3), when stated.
version_date: Option<&'a str>VersionDate (IFC date-time string), when stated. An
IfcCalendarDate record in IFC2X3.
location: Option<&'a str>Location (URI) of the library, when stated. IFC4 onwards.
description: Option<&'a str>Description of the library, when stated. IFC4 onwards.
Implementations§
Source§impl<'a> LibraryDraft<'a>
impl<'a> LibraryDraft<'a>
Sourcepub fn new(name: &'a str) -> Self
pub fn new(name: &'a str) -> Self
Starts a draft from its required fields; every other field is unset.
Sourcepub fn publisher(self, value: EntityId) -> Self
pub fn publisher(self, value: EntityId) -> Self
Sets publisher: Publisher: an IfcActorSelect (only an
IfcOrganization in IFC2X3), when stated.
Sourcepub fn version_date(self, value: &'a str) -> Self
pub fn version_date(self, value: &'a str) -> Self
Sets version_date: VersionDate (IFC date-time string), when stated.
An IfcCalendarDate record in IFC2X3.
Sourcepub fn location(self, value: &'a str) -> Self
pub fn location(self, value: &'a str) -> Self
Sets location: Location (URI) of the library, when stated. IFC4
onwards.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets description: Description of the library, when stated. IFC4
onwards.