Expand description
This crate contains the shared definitions and serialization/proto surface needed by the workflow authoring APIs, including WASM-targeted builds.
Re-exports§
pub use search_attributes::SearchAttributeError;pub use search_attributes::SearchAttributeKey;pub use search_attributes::SearchAttributeUpdate;pub use search_attributes::SearchAttributeValue;pub use search_attributes::SearchAttributes;pub use search_attributes::Timestamp;pub use worker::WorkerDeploymentVersion;
Modules§
- data_
converters - Contains traits for and default implementations of data converters, codecs, and other serialization related functionality.
- error
- Shared error types used across Temporal SDK crates.
- protos
- Protobuf definitions re-exported from
temporalio-protos. - search_
attributes - Type-safe search attribute APIs for the Temporal Rust SDK.
- worker
- WASM-safe worker-related shared types exposed through workflow APIs.
Structs§
- Memo
- A collection of memo payloads that can be deserialized into typed values.
- Memo
Value - A typed value used in a workflow memo update.
- Memo
Values - A complete set of memo values for a new workflow execution.
- Priority
- Priority contains metadata that controls relative ordering of task processing when tasks are backlogged in a queue. Initially, Priority will be used in activity and workflow task queues, which are typically where backlogs exist. Other queues in the server (such as transfer and timer queues) and rate limiting decisions do not use Priority, but may in the future.
- Retry
Policy - Options for retrying workflows and activities.
- Untyped
Activity - Marker type for starting activities by activity type name. Uses
RawValuefor both input and output. - Untyped
Workflow - Marker type for untyped workflow handles. Stores the workflow type name. Uses
RawValuefor both input and output. - Workflow
Execution - Identifies a workflow execution by workflow and run ID.
Enums§
- Activity
Close Timeouts - Represents Activity schedule-to-close and start-to-close timeouts for the purposes of specifying Activity options. Specifying at least one of them is required, but specifying both is also allowed. Note that this type does not cover all available timeout options for an Activity.
- Activity
Error - Returned as errors from activity functions.
Traits§
- Activity
Definition - Implement on a marker struct to define an activity.
- HasWorkflow
Definition - Indicates that a type is associated with a
WorkflowDefinition, enabling typed signal, query, and update methods onWorkflowHandle. - Query
Definition - Implement on a marker struct to define a query.
- Signal
Definition - Implement on a marker struct to define a signal.
- Update
Definition - Implement on a marker struct to define an update.
- Workflow
Definition - Implement on a marker struct to define a workflow.