pub struct SubOrchestratorOptions {
pub instance_id: Option<String>,
pub app_id: Option<String>,
pub retry_policy: Option<RetryPolicy>,
pub history_propagation_scope: Option<HistoryPropagationScope>,
}Expand description
Options for scheduling a sub-orchestration call from an orchestrator.
Fields§
§instance_id: Option<String>Explicit instance ID for the sub-orchestration.
If None, a random UUID is generated for each attempt.
app_id: Option<String>Route the sub-orchestration to a specific Dapr app ID.
retry_policy: Option<RetryPolicy>Retry policy to apply when the sub-orchestration fails.
history_propagation_scope: Option<HistoryPropagationScope>Forward the calling workflow’s history to the child workflow.
Implementations§
Source§impl SubOrchestratorOptions
impl SubOrchestratorOptions
pub fn new() -> Self
pub fn with_instance_id(self, id: impl Into<String>) -> Self
pub fn with_app_id(self, app_id: impl Into<String>) -> Self
pub fn with_retry_policy(self, policy: RetryPolicy) -> Self
Sourcepub fn with_history_propagation(self, scope: HistoryPropagationScope) -> Self
pub fn with_history_propagation(self, scope: HistoryPropagationScope) -> Self
Forward the calling workflow’s history to the child workflow under the given scope.
Trait Implementations§
Source§impl Clone for SubOrchestratorOptions
impl Clone for SubOrchestratorOptions
Source§fn clone(&self) -> SubOrchestratorOptions
fn clone(&self) -> SubOrchestratorOptions
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 Default for SubOrchestratorOptions
impl Default for SubOrchestratorOptions
Source§fn default() -> SubOrchestratorOptions
fn default() -> SubOrchestratorOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubOrchestratorOptions
impl !RefUnwindSafe for SubOrchestratorOptions
impl Send for SubOrchestratorOptions
impl Sync for SubOrchestratorOptions
impl Unpin for SubOrchestratorOptions
impl UnsafeUnpin for SubOrchestratorOptions
impl !UnwindSafe for SubOrchestratorOptions
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request