pub struct Chain {
pub name: Option<String>,
pub timeout: u64,
pub interpreters: HashMap<String, Interpreter>,
pub parameters: HashMap<String, Parameter>,
pub steps: IndexMap<String, Step>,
pub results: HashMap<String, ResultRef>,
}Fields§
§name: Option<String>§timeout: u64§interpreters: HashMap<String, Interpreter>§parameters: HashMap<String, Parameter>§steps: IndexMap<String, Step>§results: HashMap<String, ResultRef>Implementations§
Source§impl Chain
impl Chain
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validates the chain structure.
§Errors
Returns validation errors for unresolved references, forward references, or invalid patterns.
Sourcepub fn run_with_executor<E: CommandExecutor>(&self, executor: &E) -> ChainResult
pub fn run_with_executor<E: CommandExecutor>(&self, executor: &E) -> ChainResult
Executes the chain with a custom executor (useful for testing).
§Errors
Returns an error if timeout is exceeded, a step fails, or output resolution fails.
Sourcepub fn run(&self) -> ChainResult
pub fn run(&self) -> ChainResult
Executes the chain using the system executor.
§Errors
Returns an error if timeout is exceeded, a step fails, or output resolution fails.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chain
impl<'de> Deserialize<'de> for Chain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
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