#[non_exhaustive]pub struct ResourceConstraintDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub relating_constraint: EntityId,
pub related_resources: &'a [EntityId],
}Expand description
Draft for one resource-level constraint 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.
relating_constraint: EntityIdExisting or earlier-staged metric/objective.
Non-empty unique resource-select targets.
Implementations§
Source§impl<'a> ResourceConstraintDraft<'a>
impl<'a> ResourceConstraintDraft<'a>
Trait Implementations§
Source§impl<'a> Clone for ResourceConstraintDraft<'a>
impl<'a> Clone for ResourceConstraintDraft<'a>
Source§fn clone(&self) -> ResourceConstraintDraft<'a>
fn clone(&self) -> ResourceConstraintDraft<'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 ResourceConstraintDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceConstraintDraft<'a>
impl<'a> RefUnwindSafe for ResourceConstraintDraft<'a>
impl<'a> Send for ResourceConstraintDraft<'a>
impl<'a> Sync for ResourceConstraintDraft<'a>
impl<'a> Unpin for ResourceConstraintDraft<'a>
impl<'a> UnsafeUnpin for ResourceConstraintDraft<'a>
impl<'a> UnwindSafe for ResourceConstraintDraft<'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