#[non_exhaustive]pub struct ResourceApprovalDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub related_resources: &'a [EntityId],
pub relating_approval: EntityId,
}Expand description
Draft for one approval-to-resource relationship.
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.name: Option<&'a str>Optional relationship name.
description: Option<&'a str>Optional relationship description.
Non-empty unique IfcResourceObjectSelect targets.
relating_approval: EntityIdExisting or earlier-staged approval.
Implementations§
Source§impl<'a> ResourceApprovalDraft<'a>
impl<'a> ResourceApprovalDraft<'a>
Sourcepub fn new(
related_resources: &'a [EntityId],
relating_approval: EntityId,
) -> Self
pub fn new( related_resources: &'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 ResourceApprovalDraft<'a>
impl<'a> Clone for ResourceApprovalDraft<'a>
Source§fn clone(&self) -> ResourceApprovalDraft<'a>
fn clone(&self) -> ResourceApprovalDraft<'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 ResourceApprovalDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceApprovalDraft<'a>
impl<'a> RefUnwindSafe for ResourceApprovalDraft<'a>
impl<'a> Send for ResourceApprovalDraft<'a>
impl<'a> Sync for ResourceApprovalDraft<'a>
impl<'a> Unpin for ResourceApprovalDraft<'a>
impl<'a> UnsafeUnpin for ResourceApprovalDraft<'a>
impl<'a> UnwindSafe for ResourceApprovalDraft<'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