pub struct Stage {
pub name: String,
pub handler: Box<dyn Fn(String) -> Result<String, AgentRuntimeError> + Send + Sync>,
}Expand description
A single named stage in the pipeline.
Fields§
§name: StringHuman-readable name used in log output and error messages.
handler: Box<dyn Fn(String) -> Result<String, AgentRuntimeError> + Send + Sync>The transform function; receives the current string and returns the transformed string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stage
impl !RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl !UnwindSafe for Stage
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