pub struct Pipeline { /* private fields */ }Expand description
A pipeline that chains multiple steps.
Implementations§
Source§impl Pipeline
impl Pipeline
Sourcepub fn new(name: impl Into<String>, description: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, description: impl Into<String>) -> Self
Create a new pipeline.
Sourcepub fn add_step(self, step: impl PipelineStep + 'static) -> Self
pub fn add_step(self, step: impl PipelineStep + 'static) -> Self
Add a step to the pipeline.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Get the pipeline description.
Sourcepub fn step_count(&self) -> usize
pub fn step_count(&self) -> usize
Get the number of steps.
Sourcepub async fn execute(
&self,
client: &AsyncForgeClient,
input: impl Into<String>,
) -> PipelineResult<PipelineOutput>
pub async fn execute( &self, client: &AsyncForgeClient, input: impl Into<String>, ) -> PipelineResult<PipelineOutput>
Execute the pipeline.
Auto Trait Implementations§
impl !RefUnwindSafe for Pipeline
impl !UnwindSafe for Pipeline
impl Freeze for Pipeline
impl Send for Pipeline
impl Sync for Pipeline
impl Unpin for Pipeline
impl UnsafeUnpin for Pipeline
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