pub type StepResult<T> = Result<T, DurableError>;Expand description
Result type for step operations.
This is a type alias for Result<T, DurableError>, specifically intended
for step function return types. Using this alias makes it clear that a
function is a step operation within a durable execution.
§Examples
use durable_execution_sdk::{StepResult, DurableError};
fn validate_input(input: &str) -> StepResult<String> {
if input.len() > 100 {
Err(DurableError::validation("Input too long"))
} else {
Ok(input.to_string())
}
}§Expanded Form
ⓘ
type StepResult<T> = Result<T, DurableError>;Aliased Type§
pub enum StepResult<T> {
Ok(T),
Err(DurableError),
}