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§
§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.
Trait Implementations§
Source§impl<'a> Clone for ResourceConstraintDraft<'a>
impl<'a> Clone for ResourceConstraintDraft<'a>
impl<'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