Enum Constraint
pub enum Constraint {
Once(String),
Before(String, String),
NeverUntil {
tool: String,
until: Guard,
},
Require(Vec<String>),
}Expand description
A cross-cutting flow constraint.
Variants§
Once(String)
A tool may complete at most once.
Before(String, String)
Step 0 must be done before step 1 starts.
NeverUntil
A tool is forbidden until the guard holds.
Require(Vec<String>)
These steps must be done for the flow to be complete.
Trait Implementations§
§impl Clone for Constraint
impl Clone for Constraint
§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
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 more§impl Debug for Constraint
impl Debug for Constraint
§impl<'de> Deserialize<'de> for Constraint
impl<'de> Deserialize<'de> for Constraint
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Constraint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Constraint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Constraint
impl Serialize for Constraint
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Constraint
impl !RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl !UnwindSafe for Constraint
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