pub struct WorkflowStepDeclaration {
pub name: String,
pub display_name: Option<String>,
pub retry_policy: Option<WorkflowRetryPolicyDeclaration>,
pub timeout_ms: Option<u64>,
pub compensation: Option<WorkflowCompensationDeclaration>,
}Fields§
§name: String§display_name: Option<String>§retry_policy: Option<WorkflowRetryPolicyDeclaration>Optional durable retry schedule. max_attempts includes the original
attempt, while each delay schedules the following attempt.
timeout_ms: Option<u64>Optional durable timeout applied independently to every attempt.
compensation: Option<WorkflowCompensationDeclaration>Optional compensation for the completed business effect produced by this step. The explicit order is evaluated across all completed effects when compensation is selected; it is independent from completion time.
Implementations§
Source§impl WorkflowStepDeclaration
impl WorkflowStepDeclaration
pub fn new(name: impl Into<String>) -> Self
pub fn with_display_name(self, display_name: impl Into<String>) -> Self
pub fn with_retry_policy( self, retry_policy: WorkflowRetryPolicyDeclaration, ) -> Self
pub const fn with_timeout_ms(self, timeout_ms: u64) -> Self
pub fn with_compensation( self, compensation: WorkflowCompensationDeclaration, ) -> Self
Trait Implementations§
Source§impl Clone for WorkflowStepDeclaration
impl Clone for WorkflowStepDeclaration
Source§fn clone(&self) -> WorkflowStepDeclaration
fn clone(&self) -> WorkflowStepDeclaration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for WorkflowStepDeclaration
impl ComposeSchema for WorkflowStepDeclaration
Source§impl Debug for WorkflowStepDeclaration
impl Debug for WorkflowStepDeclaration
Source§impl<'de> Deserialize<'de> for WorkflowStepDeclaration
impl<'de> Deserialize<'de> for WorkflowStepDeclaration
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
impl Eq for WorkflowStepDeclaration
Source§impl JsonSchema for WorkflowStepDeclaration
impl JsonSchema for WorkflowStepDeclaration
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for WorkflowStepDeclaration
impl PartialEq for WorkflowStepDeclaration
Source§impl Serialize for WorkflowStepDeclaration
impl Serialize for WorkflowStepDeclaration
impl StructuralPartialEq for WorkflowStepDeclaration
Auto Trait Implementations§
impl Freeze for WorkflowStepDeclaration
impl RefUnwindSafe for WorkflowStepDeclaration
impl Send for WorkflowStepDeclaration
impl Sync for WorkflowStepDeclaration
impl Unpin for WorkflowStepDeclaration
impl UnsafeUnpin for WorkflowStepDeclaration
impl UnwindSafe for WorkflowStepDeclaration
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.