Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dapr/rust-sdk
/ functions
Functions
462 in github.com/dapr/rust-sdk
⨍
Functions
462
◇
Types & classes
361
↓ 81 callers
Method
clone
(&self)
dapr/src/dapr/dapr.proto.runtime.v1.rs:1828
↓ 64 callers
Method
clone
(&self)
dapr/src/workflow/client.rs:307
↓ 18 callers
Method
registry_mut
Get the worker registry for registering workflows and activities before starting the worker.
dapr/src/workflow/client.rs:50
↓ 17 callers
Method
with_input
Set the JSON-serializable input passed to the workflow. # Panics Panics if `input` cannot be serialized to JSON. Prefer [`ScheduleOptions::try_with_
dapr/src/workflow/options.rs:43
↓ 16 callers
Method
clone
(&self)
examples/src/invoke/protos/helloworld.rs:286
↓ 9 callers
Method
build
(self)
dapr/src/client/mod.rs:1505
↓ 8 callers
Method
call_activity_typed
( &self, name: &str, input: I, )
dapr/src/workflow/context.rs:106
↓ 8 callers
Method
into_parts
(self)
dapr/src/workflow/options.rs:144
↓ 7 callers
Method
add_activity
(&mut self, name: &str, f: F)
dapr/src/workflow/context.rs:259
↓ 7 callers
Method
get_input
( &self, input: Option<&str>, )
dapr/src/workflow/context.rs:213
↓ 7 callers
Method
get_input_typed
(&self)
dapr/src/workflow/context.rs:102
↓ 7 callers
Function
with_env
(pairs: &[(&str, Option<&str>)], f: F)
dapr/src/client/config.rs:224
↓ 7 callers
Method
with_fetch_payloads
Set whether workflow inputs and outputs are included in the returned metadata. # Arguments `fetch_payloads` - When `true`, include workflow inputs a
dapr/src/workflow/options.rs:333
↓ 7 callers
Method
with_history_propagation
Set the history propagation scope applied to the activity invocation. # Arguments `scope` - Scope controlling how caller history is propagated to th
dapr/src/workflow/options.rs:139
↓ 7 callers
Method
with_retry_policy
Set the retry policy applied to the activity invocation. # Arguments `retry_policy` - Policy describing retry attempts, intervals, and backoff.
dapr/src/workflow/options.rs:129
↓ 6 callers
Function
deserialize_task_output
( output: Option<String>, )
dapr/src/workflow/context.rs:268
↓ 6 callers
Method
purge_workflow_state
Purge workflow state and history for an instance. # Arguments `instance_id` - ID of the workflow instance to purge.
dapr/src/workflow/client.rs:237
↓ 6 callers
Method
schedule_workflow
Schedule a new workflow instance and return its instance ID. # Arguments `name` - Name of the registered workflow to schedule. `options` - Schedule
dapr/src/workflow/client.rs:91
↓ 5 callers
Function
default_sidecar_address
Build the default sidecar gRPC address from the environment, with this resolution order: 1. [`DAPR_GRPC_ENDPOINT_ENV`] if set. 2. `http://127.0.0.1:$
dapr/src/client/config.rs:58
↓ 5 callers
Method
register_method
Registers a method on the actor type to be exposed to actor clients. # Arguments: `method_name` - The name of the method to be registered. This name
dapr/src/server/actor/runtime/mod.rs:168
↓ 5 callers
Method
shutdown
Request worker shutdown and wait for the worker task to finish.
dapr/src/workflow/client.rs:470
↓ 5 callers
Method
start_worker
Start the workflow worker on a Tokio task.
dapr/src/workflow/client.rs:58
↓ 5 callers
Method
with_instance_id
Set an explicit instance ID for the new workflow. # Arguments `instance_id` - Caller-supplied identifier for the workflow instance.
dapr/src/workflow/options.rs:28
↓ 4 callers
Method
add_workflow
(&mut self, name: &str, f: F)
dapr/src/workflow/context.rs:251
↓ 4 callers
Method
fetch_workflow_metadata
Fetch workflow metadata, optionally including inputs and outputs. # Arguments `instance_id` - ID of the workflow instance to fetch metadata for. `op
dapr/src/workflow/client.rs:149
↓ 4 callers
Method
layer
(&self, inner: S)
dapr/src/client/interceptor.rs:142
↓ 4 callers
Function
purge_workflow_state_recursive_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, recursive: bool, )
dapr/src/workflow/client.rs:589
↓ 4 callers
Method
schedule_job
Schedules a job with the Dapr Distributed Scheduler # Arguments job - The job to schedule overwrite - Optional flag to overwrite an existing job wit
dapr/src/client/mod.rs:609
↓ 4 callers
Function
terminate_workflow_recursive_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, recursive: bool, )
dapr/src/workflow/client.rs:608
↓ 4 callers
Method
try_with_input
Set the JSON-serializable input passed to the workflow, returning an error if serialization fails. # Arguments `input` - Value serialized to JSON an
dapr/src/workflow/options.rs:54
↓ 4 callers
Function
wait_for_workflow_completion_with_options_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, options: FetchOptions, timeout: Option<Du
dapr/src/workflow/client.rs:575
↓ 4 callers
Function
wait_for_workflow_start_with_options_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, options: FetchOptions, timeout: Option<Du
dapr/src/workflow/client.rs:561
↓ 4 callers
Method
with_api_token
Set the Dapr API token used as the `dapr-api-token` metadata value on every outgoing call. Pass an empty string to clear.
dapr/src/client/config.rs:147
↓ 4 callers
Method
with_schedule
(mut self, schedule: &str)
dapr/src/client/mod.rs:1475
↓ 3 callers
Method
build_test_router
(&mut self)
dapr/src/server/http.rs:237
↓ 3 callers
Method
call
(&mut self, mut request: tonic::Request<()>)
dapr/src/client/interceptor.rs:76
↓ 3 callers
Method
call_activity_with_options_typed
( &self, name: &str, options: ActivityOptions, )
dapr/src/workflow/context.rs:119
↓ 3 callers
Function
fraud_response
(result: FraudCheckResult)
examples/src/workflow-history-propagation/main.rs:348
↓ 3 callers
Function
get_available_port
()
dapr/src/server/actor/tests.rs:286
↓ 3 callers
Method
get_metadata
Set sidecar Metadata
dapr/src/client/mod.rs:421
↓ 3 callers
Method
input_json
(self)
dapr/src/workflow/options.rs:69
↓ 3 callers
Method
propagated_history
( &self, )
dapr/src/workflow/context.rs:162
↓ 3 callers
Method
register_actor
Registers an actor type to be exposed to actor clients. # Arguments: `registration` - The [ActorTypeRegistration] that describes the actor implementat
dapr/src/server/actor/runtime/mod.rs:223
↓ 3 callers
Method
terminate_workflow
Terminate a workflow instance. # Arguments `instance_id` - ID of the workflow instance to terminate.
dapr/src/workflow/client.rs:276
↓ 3 callers
Method
wait_for_workflow_completion_with_options
Wait for a workflow to complete with fetch and timeout options. # Arguments `instance_id` - ID of the workflow instance to wait for. `options` - Fet
dapr/src/workflow/client.rs:217
↓ 3 callers
Method
with_address
Override the gRPC endpoint. Accepts the same shapes as `DAPR_GRPC_ENDPOINT`.
dapr/src/client/config.rs:140
↓ 2 callers
Method
add_handler
(&mut self, handler: Handler)
dapr/src/appcallback.rs:255
↓ 2 callers
Method
build_router
(&mut self)
dapr/src/server/http.rs:241
↓ 2 callers
Method
call_sub_workflow_with_options_typed
( &self, name: &str, options: SubWorkflowOptions, )
dapr/src/workflow/context.rs:149
↓ 2 callers
Method
connect
(addr: String)
dapr/src/client/mod.rs:60
↓ 2 callers
Method
decrypt
Decrypt binary data using Dapr. returns `Vec<u8>`. # Arguments `encrypted` - Encrypted data usually returned from encrypted, `Vec<StreamPayload>` `o
dapr/src/client/mod.rs:578
↓ 2 callers
Method
delete_job
Deletes a scheduled job from the Dapr Distributed Scheduler # Arguments name - The name of the job to delete
dapr/src/client/mod.rs:672
↓ 2 callers
Method
encrypt
Encrypt binary data using Dapr. returns `Vec<StreamPayload>` to be used in decrypt method # Arguments `payload` - ReaderStream to the data to encryp
dapr/src/client/mod.rs:537
↓ 2 callers
Function
ensure_url_scheme
Prepend `http://` to `address` when no URL scheme is present so that the underlying tonic channel can parse it.
dapr/src/workflow/client.rs:494
↓ 2 callers
Function
fetch_workflow_metadata_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, options: FetchOptions, )
dapr/src/workflow/client.rs:548
↓ 2 callers
Method
get_job
Retrieves a scheduled job from the Dapr Distributed Scheduler # Arguments name - The name of the job to retrieve
dapr/src/client/mod.rs:646
↓ 2 callers
Method
get_or_create_actor
( &self, actor_type: &str, id: &str, )
dapr/src/server/actor/runtime/mod.rs:298
↓ 2 callers
Method
get_state
Get the state for a specific key. # Arguments `store_name` - The name of state store. `key` - The key of the desired state. `metadata` - Any metadat
dapr/src/client/mod.rs:254
↓ 2 callers
Method
invoke_binding
Invoke a Dapr output binding. # Arguments `name` - The name of the output binding to invoke. `data` - The data which will be sent to the output bind
dapr/src/client/mod.rs:135
↓ 2 callers
Method
on_deactivate
(&self)
dapr/src/server/actor/tests.rs:43
↓ 2 callers
Method
payload_json
(self)
dapr/src/workflow/options.rs:307
↓ 2 callers
Function
print_workflow_history
(prefix: &str, history: Option<&PropagatedHistory>)
examples/src/workflow-history-propagation/main.rs:352
↓ 2 callers
Function
proto_gen
( root_dir: PathBuf, build_client: bool, build_server: bool, out_dir: &str, protos: &[Path
proto-gen/src/main.rs:55
↓ 2 callers
Method
publish_event
Publish a payload to multiple consumers who are listening on a topic. Dapr guarantees at least once semantics for this endpoint. # Arguments `pubsu
dapr/src/client/mod.rs:184
↓ 2 callers
Function
purge_workflow_state_by_filter_impl
( client: &mut TaskHubGrpcClient, filter: PurgeInstanceFilter, recursive: bool, )
dapr/src/workflow/client.rs:598
↓ 2 callers
Method
query_state_alpha1
Query state objects based on specific query conditions # Arguments `store_name` - The name of state store. `query` - The query request (json)
dapr/src/client/mod.rs:335
↓ 2 callers
Function
raise_event_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, event_name: &str, options: EventOptions,
dapr/src/workflow/client.rs:537
↓ 2 callers
Function
read_optional_env
(key: &str)
dapr/src/client/config.rs:196
↓ 2 callers
Function
read_timeout_env
()
dapr/src/client/config.rs:203
↓ 2 callers
Function
resume_workflow_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, reason: impl Into<String>, )
dapr/src/workflow/client.rs:528
↓ 2 callers
Function
sanitize_endpoint_for_diagnostics
Return a diagnostics-safe endpoint string. Keeps scheme when present and strips path/query/fragment and any userinfo so that credentials never appear
dapr/src/error.rs:53
↓ 2 callers
Method
save_state
Save an array of state objects. This does not include any etag or metadata options. # Arguments `store_name` - The name of state store. `key` - The
dapr/src/client/mod.rs:287
↓ 2 callers
Function
schedule_workflow_impl
( client: &mut TaskHubGrpcClient, name: &str, options: ScheduleOptions, )
dapr/src/workflow/client.rs:504
↓ 2 callers
Function
spawn_workflow
( tasks: &mut JoinSet<WorkflowRunResult>, mut client: WorkflowSchedulingClient, input: i32, )
examples/src/workflow-sustained/main.rs:144
↓ 2 callers
Method
start
Starts the Dapr HTTP server. # Arguments: `port` - The port to listen on. If not specified, the APP_PORT environment variable will be used. If that i
dapr/src/server/http.rs:208
↓ 2 callers
Method
start_time_utc
(&self)
dapr/src/workflow/options.rs:76
↓ 2 callers
Function
suspend_workflow_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, reason: impl Into<String>, )
dapr/src/workflow/client.rs:517
↓ 2 callers
Method
timeout
The configured connect timeout.
dapr/src/client/config.rs:176
↓ 2 callers
Method
try_with_payload
Set the JSON-serializable payload delivered with the event, returning an error if serialization fails. # Arguments `payload` - Value serialized to J
dapr/src/workflow/options.rs:302
↓ 2 callers
Method
wait_for_workflow_completion
Wait for a workflow to complete. # Arguments `instance_id` - ID of the workflow instance to wait for.
dapr/src/workflow/client.rs:197
↓ 2 callers
Method
with_app_id
Set the target app ID hosting the child workflow. # Arguments `app_id` - Dapr app ID that should execute the child workflow.
dapr/src/workflow/options.rs:219
↓ 2 callers
Method
with_data
(mut self, data: Any)
dapr/src/client/mod.rs:1480
↓ 2 callers
Method
with_payload
Set the JSON-serializable payload delivered with the event. # Panics Panics if `payload` cannot be serialized to JSON. Prefer [`EventOptions::try_wi
dapr/src/workflow/options.rs:291
↓ 2 callers
Method
with_repeats
(mut self, repeats: u32)
dapr/src/client/mod.rs:1490
↓ 2 callers
Method
with_scrub_pii
(mut self, scrub: bool)
dapr/src/client/mod.rs:1638
↓ 2 callers
Method
with_timeout
Set the gRPC connect timeout.
dapr/src/client/config.rs:160
↓ 1 callers
Method
activate_actor
( &self, actor_type: &str, id: &str, )
dapr/src/server/actor/runtime/mod.rs:313
↓ 1 callers
Method
address
The configured gRPC endpoint.
dapr/src/client/config.rs:166
↓ 1 callers
Method
api_token
The configured Dapr API token, if any.
dapr/src/client/config.rs:171
↓ 1 callers
Method
configure_method_routes
( &self, router: Router, runtime: Arc<ActorRuntime>, )
dapr/src/server/actor/runtime/mod.rs:230
↓ 1 callers
Method
converse_alpha1
Converse with an LLM # Arguments ConversationRequest - The request containing inputs to send to the LLM
dapr/src/client/mod.rs:719
↓ 1 callers
Method
converse_alpha2
Converse with an LLM using alpha2 # Arguments ConversationRequestAlpha2 - The request containing inputs to send to the LLM
dapr/src/client/mod.rs:731
↓ 1 callers
Method
create_actor
(&self, actor_id: &str, client: TonicClient)
dapr/src/server/actor/runtime/mod.rs:194
↓ 1 callers
Method
deactivate_actor
(&self, name: &str, id: &str)
dapr/src/server/actor/runtime/mod.rs:246
↓ 1 callers
Method
deactivate_all
(&self)
dapr/src/server/actor/runtime/mod.rs:259
↓ 1 callers
Function
default_sidecar_address
()
dapr/src/workflow/client.rs:486
↓ 1 callers
Method
delete_state
Delete the state for a specific key. # Arguments `store_name` - The name of state store. `key` - The key of the desired state.
dapr/src/client/mod.rs:380
↓ 1 callers
Method
get_actor_state
(&self, actor_id: &str)
dapr/src/server/actor/tests.rs:256
↓ 1 callers
Method
get_bulk_secret
Get all secrets for a given store # Arguments `store_name` - The name of the secret store.
dapr/src/client/mod.rs:231
↓ 1 callers
Method
get_configuration
Get the configuration for a specific key /// # Arguments `store_name` - The name of config store. `keys` - The key of the desired configuration.
dapr/src/client/mod.rs:479
next →
1–100 of 462, ranked by callers