#[non_exhaustive]pub struct ApprovalAssociationDraft<'a> {
pub global_id: &'a str,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub related_objects: &'a [EntityId],
pub relating_approval: EntityId,
}Expand description
Draft for one rooted approval association to definitions.
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.global_id: &'a strCompressed IFC GlobalId.
name: Option<&'a str>Optional relationship name.
description: Option<&'a str>Optional relationship description.
Non-empty unique IfcDefinitionSelect targets.
relating_approval: EntityIdExisting or earlier-staged approval.
Implementations§
Source§impl<'a> ApprovalAssociationDraft<'a>
impl<'a> ApprovalAssociationDraft<'a>
Sourcepub fn new(
global_id: &'a str,
related_objects: &'a [EntityId],
relating_approval: EntityId,
) -> Self
pub fn new( global_id: &'a str, related_objects: &'a [EntityId], relating_approval: EntityId, ) -> Self
Starts a draft with its required fields; the rest are unset.
Sourcepub fn name(self, value: &'a str) -> Self
pub fn name(self, value: &'a str) -> Self
Sets Self::name: Optional relationship name.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Self::description: Optional relationship description.
Trait Implementations§
Source§impl<'a> Clone for ApprovalAssociationDraft<'a>
impl<'a> Clone for ApprovalAssociationDraft<'a>
Source§fn clone(&self) -> ApprovalAssociationDraft<'a>
fn clone(&self) -> ApprovalAssociationDraft<'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 ApprovalAssociationDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ApprovalAssociationDraft<'a>
impl<'a> RefUnwindSafe for ApprovalAssociationDraft<'a>
impl<'a> Send for ApprovalAssociationDraft<'a>
impl<'a> Sync for ApprovalAssociationDraft<'a>
impl<'a> Unpin for ApprovalAssociationDraft<'a>
impl<'a> UnsafeUnpin for ApprovalAssociationDraft<'a>
impl<'a> UnwindSafe for ApprovalAssociationDraft<'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