pub struct ActivityOptions {
pub app_id: Option<String>,
pub retry_policy: Option<RetryPolicy>,
pub history_propagation_scope: Option<HistoryPropagationScope>,
}Expand description
Options for scheduling an activity call from an orchestrator.
Fields§
§app_id: Option<String>Route the activity to a specific Dapr app ID (cross-app invocation).
retry_policy: Option<RetryPolicy>Retry policy to apply when the activity fails.
history_propagation_scope: Option<HistoryPropagationScope>Forward the calling workflow’s history to the activity. See
HistoryPropagationScope for the trade-off between
OwnHistory (caller only) and Lineage (caller + ancestors).
Implementations§
Source§impl ActivityOptions
impl ActivityOptions
pub fn new() -> 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 activity under the given scope.
Trait Implementations§
Source§impl Clone for ActivityOptions
impl Clone for ActivityOptions
Source§fn clone(&self) -> ActivityOptions
fn clone(&self) -> ActivityOptions
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 ActivityOptions
impl Default for ActivityOptions
Source§fn default() -> ActivityOptions
fn default() -> ActivityOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActivityOptions
impl !RefUnwindSafe for ActivityOptions
impl Send for ActivityOptions
impl Sync for ActivityOptions
impl Unpin for ActivityOptions
impl UnsafeUnpin for ActivityOptions
impl !UnwindSafe for ActivityOptions
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