#[non_exhaustive]pub struct PresentationLayerDraft<'a> {
pub name: &'a str,
pub description: Option<&'a str>,
pub assigned_items: Vec<EntityId>,
pub identifier: Option<&'a str>,
pub layer_on: Option<bool>,
pub layer_frozen: Option<bool>,
pub layer_blocked: Option<bool>,
pub layer_styles: Vec<EntityId>,
}Expand description
Draft input for create_presentation_layer_with_style: the writable
attributes of a new IfcPresentationLayerWithStyle.
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 strThe Name attribute; must be non-empty.
description: Option<&'a str>The Description attribute, when supplied.
assigned_items: Vec<EntityId>The AssignedItems references; at least one is required, and each
must resolve to an IfcRepresentation or IfcRepresentationItem.
identifier: Option<&'a str>The Identifier attribute, when supplied.
layer_on: Option<bool>The LayerOn attribute, when supplied.
layer_frozen: Option<bool>The LayerFrozen attribute, when supplied.
layer_blocked: Option<bool>The LayerBlocked attribute, when supplied.
layer_styles: Vec<EntityId>The LayerStyles references.
Implementations§
Source§impl<'a> PresentationLayerDraft<'a>
impl<'a> PresentationLayerDraft<'a>
Sourcepub fn new(name: &'a str, assigned_items: Vec<EntityId>) -> Self
pub fn new(name: &'a str, assigned_items: Vec<EntityId>) -> Self
Starts a draft from its required name, assigned_items; every other
field is unset.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets description.
The Description attribute, when supplied.
Sourcepub fn identifier(self, value: &'a str) -> Self
pub fn identifier(self, value: &'a str) -> Self
Sets identifier.
The Identifier attribute, when supplied.
Sourcepub fn layer_on(self, value: bool) -> Self
pub fn layer_on(self, value: bool) -> Self
Sets layer_on.
The LayerOn attribute, when supplied.
Sourcepub fn layer_frozen(self, value: bool) -> Self
pub fn layer_frozen(self, value: bool) -> Self
Sets layer_frozen.
The LayerFrozen attribute, when supplied.
Sourcepub fn layer_blocked(self, value: bool) -> Self
pub fn layer_blocked(self, value: bool) -> Self
Sets layer_blocked.
The LayerBlocked attribute, when supplied.
Sourcepub fn layer_styles(self, value: Vec<EntityId>) -> Self
pub fn layer_styles(self, value: Vec<EntityId>) -> Self
Sets layer_styles.
The LayerStyles references.
Trait Implementations§
Source§impl<'a> Clone for PresentationLayerDraft<'a>
impl<'a> Clone for PresentationLayerDraft<'a>
Source§fn clone(&self) -> PresentationLayerDraft<'a>
fn clone(&self) -> PresentationLayerDraft<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more