#[non_exhaustive]pub struct OwnerHistoryDraft<'a> {
pub owning_user: EntityId,
pub owning_application: EntityId,
pub change_action: Option<&'a str>,
pub creation_date: i64,
pub last_modified_date: Option<i64>,
}Expand description
Authored fields for IfcOwnerHistory.
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.owning_user: EntityIdIfcOwnerHistory.OwningUser, an IfcPersonAndOrganization.
owning_application: EntityIdIfcOwnerHistory.OwningApplication, an IfcApplication.
change_action: Option<&'a str>IfcOwnerHistory.ChangeAction, an IfcChangeActionEnum constant.
creation_date: i64IfcOwnerHistory.CreationDate, an IFC timestamp (seconds since the
1970 epoch).
last_modified_date: Option<i64>IfcOwnerHistory.LastModifiedDate, if the record was edited.
Implementations§
Source§impl<'a> OwnerHistoryDraft<'a>
impl<'a> OwnerHistoryDraft<'a>
Sourcepub fn new(
owning_user: EntityId,
owning_application: EntityId,
creation_date: i64,
) -> Self
pub fn new( owning_user: EntityId, owning_application: EntityId, creation_date: i64, ) -> Self
Starts a draft with its required fields; the rest are unset.
Sourcepub fn change_action(self, value: &'a str) -> Self
pub fn change_action(self, value: &'a str) -> Self
Sets Self::change_action: IfcOwnerHistory.ChangeAction, an IfcChangeActionEnum constant.
Sourcepub fn last_modified_date(self, value: i64) -> Self
pub fn last_modified_date(self, value: i64) -> Self
Sets Self::last_modified_date: IfcOwnerHistory.LastModifiedDate, if the record was edited.
Trait Implementations§
Source§impl<'a> Clone for OwnerHistoryDraft<'a>
impl<'a> Clone for OwnerHistoryDraft<'a>
Source§fn clone(&self) -> OwnerHistoryDraft<'a>
fn clone(&self) -> OwnerHistoryDraft<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for OwnerHistoryDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for OwnerHistoryDraft<'a>
impl<'a> RefUnwindSafe for OwnerHistoryDraft<'a>
impl<'a> Send for OwnerHistoryDraft<'a>
impl<'a> Sync for OwnerHistoryDraft<'a>
impl<'a> Unpin for OwnerHistoryDraft<'a>
impl<'a> UnsafeUnpin for OwnerHistoryDraft<'a>
impl<'a> UnwindSafe for OwnerHistoryDraft<'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