pub struct Step {
pub name: String,
pub description: String,
pub executor: String,
pub criteria: Vec<Criterion>,
}Expand description
一个工作步骤:叫什么、做什么、谁执行、怎么算完。
Fields§
§name: String§description: String§executor: String§criteria: Vec<Criterion>Implementations§
Source§impl Step
impl Step
Sourcepub fn from_yaml(
value: &Yaml,
file: &str,
position: usize,
) -> Result<Step, DefinitionError>
pub fn from_yaml( value: &Yaml, file: &str, position: usize, ) -> Result<Step, DefinitionError>
从定义里的字段读出,顺带把语法过一遍。
pub fn name(&self) -> String
pub fn description(&self) -> String
pub fn executor(&self) -> String
pub fn criteria(&self) -> Vec<Criterion>
pub fn rules(&self) -> Vec<Criterion>
pub fn agents(&self) -> Vec<Criterion>
pub fn gates(&self) -> Vec<Criterion>
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.