pub struct IntentConstraint {
pub key: String,
pub value: String,
pub severity: ConstraintSeverity,
}Expand description
A constraint on the intent execution.
Fields§
§key: StringUnique key for this constraint.
value: StringHuman-readable description or value.
severity: ConstraintSeveritySeverity level.
Implementations§
Trait Implementations§
Source§impl Clone for IntentConstraint
impl Clone for IntentConstraint
Source§fn clone(&self) -> IntentConstraint
fn clone(&self) -> IntentConstraint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntentConstraint
impl Debug for IntentConstraint
Source§impl Hash for IntentConstraint
impl Hash for IntentConstraint
Source§impl PartialEq for IntentConstraint
impl PartialEq for IntentConstraint
impl Eq for IntentConstraint
impl StructuralPartialEq for IntentConstraint
Auto Trait Implementations§
impl Freeze for IntentConstraint
impl RefUnwindSafe for IntentConstraint
impl Send for IntentConstraint
impl Sync for IntentConstraint
impl Unpin for IntentConstraint
impl UnwindSafe for IntentConstraint
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