#[non_exhaustive]pub struct ClassificationDraft<'a> {
pub source: Option<&'a str>,
pub edition: Option<&'a str>,
pub edition_date: Option<&'a str>,
pub name: &'a str,
pub description: Option<&'a str>,
pub location: Option<&'a str>,
pub reference_tokens: Option<&'a [&'a str]>,
}Expand description
Draft for one IfcClassification, fields named as IFC4 names them.
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.source: Option<&'a str>Source publishing organization, when stated. Required by IFC2X3.
edition: Option<&'a str>Edition identifier of the classification, when stated. Required by
IFC2X3.
edition_date: Option<&'a str>EditionDate (IFC date string), when stated. IFC2X3 types it as an
IfcCalendarDate record, so text is refused there.
name: &'a strRequired Name of the classification system.
description: Option<&'a str>Description of the classification, when stated. IFC4 onwards.
location: Option<&'a str>Location (URI) of the classification, when stated: written to
Specification in IFC4X3. IFC4 onwards.
reference_tokens: Option<&'a [&'a str]>ReferenceTokens delimiter set; must be non-empty when given. IFC4
onwards.
Implementations§
Source§impl<'a> ClassificationDraft<'a>
impl<'a> ClassificationDraft<'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 source(self, value: &'a str) -> Self
pub fn source(self, value: &'a str) -> Self
Sets source: Source publishing organization, when stated. Required
by IFC2X3.
Sourcepub fn edition(self, value: &'a str) -> Self
pub fn edition(self, value: &'a str) -> Self
Sets edition: Edition identifier of the classification, when stated.
Required by IFC2X3.
Sourcepub fn edition_date(self, value: &'a str) -> Self
pub fn edition_date(self, value: &'a str) -> Self
Sets edition_date: EditionDate (IFC date string), when stated.
IFC2X3 types it as an IfcCalendarDate record, so text is refused
there.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets description: Description of the classification, when stated.
IFC4 onwards.
Sourcepub fn location(self, value: &'a str) -> Self
pub fn location(self, value: &'a str) -> Self
Sets location: Location (URI) of the classification, when stated:
written to Specification in IFC4X3. IFC4 onwards.
Sourcepub fn reference_tokens(self, value: &'a [&'a str]) -> Self
pub fn reference_tokens(self, value: &'a [&'a str]) -> Self
Sets reference_tokens: ReferenceTokens delimiter set; must be non-
empty when given. IFC4 onwards.