pub struct ResourceDraft<'a> { /* private fields */ }Expand description
Staged fields for authoring a concrete IfcConstructionResource
occurrence before it is committed through ResourceEditor.
Implementations§
Source§impl<'a> ResourceDraft<'a>
impl<'a> ResourceDraft<'a>
Sourcepub fn new(kind: ResourceKind, global_id: &'a str) -> Self
pub fn new(kind: ResourceKind, global_id: &'a str) -> Self
Starts a draft for the given resource subtype and GlobalId.
Sourcepub fn identification(self, value: &'a str) -> Self
pub fn identification(self, value: &'a str) -> Self
Sets the Identification attribute.
Sourcepub fn long_description(self, value: &'a str) -> Self
pub fn long_description(self, value: &'a str) -> Self
Sets the LongDescription attribute.
Sourcepub fn object_type(self, value: &'a str) -> Self
pub fn object_type(self, value: &'a str) -> Self
Sets the ObjectType attribute; required when predefined_type is
USERDEFINED.
Sourcepub fn usage(self, value: EntityId) -> Self
pub fn usage(self, value: EntityId) -> Self
Sets the Usage attribute: a reference to an authored
IfcResourceTime.
Sourcepub fn base_costs(self, values: Vec<EntityId>) -> Self
pub fn base_costs(self, values: Vec<EntityId>) -> Self
Sets the BaseCosts attribute: applied-value references.
Sourcepub fn base_quantity(self, value: EntityId) -> Self
pub fn base_quantity(self, value: EntityId) -> Self
Sets the BaseQuantity attribute: a physical-quantity reference.
Sourcepub fn predefined_type(self, value: &'a str) -> Self
pub fn predefined_type(self, value: &'a str) -> Self
Sets the PredefinedType enumeration.
Trait Implementations§
Source§impl<'a> Clone for ResourceDraft<'a>
impl<'a> Clone for ResourceDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceDraft<'a>
impl<'a> RefUnwindSafe for ResourceDraft<'a>
impl<'a> Send for ResourceDraft<'a>
impl<'a> Sync for ResourceDraft<'a>
impl<'a> Unpin for ResourceDraft<'a>
impl<'a> UnsafeUnpin for ResourceDraft<'a>
impl<'a> UnwindSafe for ResourceDraft<'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