MCPcopy Create free account

hub / github.com/dapr/rust-sdk / functions

Functions462 in github.com/dapr/rust-sdk

↓ 81 callersMethodclone
(&self)
dapr/src/dapr/dapr.proto.runtime.v1.rs:1828
↓ 64 callersMethodclone
(&self)
dapr/src/workflow/client.rs:307
↓ 18 callersMethodregistry_mut
Get the worker registry for registering workflows and activities before starting the worker.
dapr/src/workflow/client.rs:50
↓ 17 callersMethodwith_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 callersMethodclone
(&self)
examples/src/invoke/protos/helloworld.rs:286
↓ 9 callersMethodbuild
(self)
dapr/src/client/mod.rs:1505
↓ 8 callersMethodcall_activity_typed
( &self, name: &str, input: I, )
dapr/src/workflow/context.rs:106
↓ 8 callersMethodinto_parts
(self)
dapr/src/workflow/options.rs:144
↓ 7 callersMethodadd_activity
(&mut self, name: &str, f: F)
dapr/src/workflow/context.rs:259
↓ 7 callersMethodget_input
( &self, input: Option<&str>, )
dapr/src/workflow/context.rs:213
↓ 7 callersMethodget_input_typed
(&self)
dapr/src/workflow/context.rs:102
↓ 7 callersFunctionwith_env
(pairs: &[(&str, Option<&str>)], f: F)
dapr/src/client/config.rs:224
↓ 7 callersMethodwith_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 callersMethodwith_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 callersMethodwith_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 callersFunctiondeserialize_task_output
( output: Option<String>, )
dapr/src/workflow/context.rs:268
↓ 6 callersMethodpurge_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 callersMethodschedule_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 callersFunctiondefault_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 callersMethodregister_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 callersMethodshutdown
Request worker shutdown and wait for the worker task to finish.
dapr/src/workflow/client.rs:470
↓ 5 callersMethodstart_worker
Start the workflow worker on a Tokio task.
dapr/src/workflow/client.rs:58
↓ 5 callersMethodwith_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 callersMethodadd_workflow
(&mut self, name: &str, f: F)
dapr/src/workflow/context.rs:251
↓ 4 callersMethodfetch_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 callersMethodlayer
(&self, inner: S)
dapr/src/client/interceptor.rs:142
↓ 4 callersFunctionpurge_workflow_state_recursive_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, recursive: bool, )
dapr/src/workflow/client.rs:589
↓ 4 callersMethodschedule_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 callersFunctionterminate_workflow_recursive_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, recursive: bool, )
dapr/src/workflow/client.rs:608
↓ 4 callersMethodtry_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 callersFunctionwait_for_workflow_completion_with_options_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, options: FetchOptions, timeout: Option<Du
dapr/src/workflow/client.rs:575
↓ 4 callersFunctionwait_for_workflow_start_with_options_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, options: FetchOptions, timeout: Option<Du
dapr/src/workflow/client.rs:561
↓ 4 callersMethodwith_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 callersMethodwith_schedule
(mut self, schedule: &str)
dapr/src/client/mod.rs:1475
↓ 3 callersMethodbuild_test_router
(&mut self)
dapr/src/server/http.rs:237
↓ 3 callersMethodcall
(&mut self, mut request: tonic::Request<()>)
dapr/src/client/interceptor.rs:76
↓ 3 callersMethodcall_activity_with_options_typed
( &self, name: &str, options: ActivityOptions, )
dapr/src/workflow/context.rs:119
↓ 3 callersFunctionfraud_response
(result: FraudCheckResult)
examples/src/workflow-history-propagation/main.rs:348
↓ 3 callersFunctionget_available_port
()
dapr/src/server/actor/tests.rs:286
↓ 3 callersMethodget_metadata
Set sidecar Metadata
dapr/src/client/mod.rs:421
↓ 3 callersMethodinput_json
(self)
dapr/src/workflow/options.rs:69
↓ 3 callersMethodpropagated_history
( &self, )
dapr/src/workflow/context.rs:162
↓ 3 callersMethodregister_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 callersMethodterminate_workflow
Terminate a workflow instance. # Arguments `instance_id` - ID of the workflow instance to terminate.
dapr/src/workflow/client.rs:276
↓ 3 callersMethodwait_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 callersMethodwith_address
Override the gRPC endpoint. Accepts the same shapes as `DAPR_GRPC_ENDPOINT`.
dapr/src/client/config.rs:140
↓ 2 callersMethodadd_handler
(&mut self, handler: Handler)
dapr/src/appcallback.rs:255
↓ 2 callersMethodbuild_router
(&mut self)
dapr/src/server/http.rs:241
↓ 2 callersMethodcall_sub_workflow_with_options_typed
( &self, name: &str, options: SubWorkflowOptions, )
dapr/src/workflow/context.rs:149
↓ 2 callersMethodconnect
(addr: String)
dapr/src/client/mod.rs:60
↓ 2 callersMethoddecrypt
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 callersMethoddelete_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 callersMethodencrypt
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 callersFunctionensure_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 callersFunctionfetch_workflow_metadata_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, options: FetchOptions, )
dapr/src/workflow/client.rs:548
↓ 2 callersMethodget_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 callersMethodget_or_create_actor
( &self, actor_type: &str, id: &str, )
dapr/src/server/actor/runtime/mod.rs:298
↓ 2 callersMethodget_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 callersMethodinvoke_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 callersMethodon_deactivate
(&self)
dapr/src/server/actor/tests.rs:43
↓ 2 callersMethodpayload_json
(self)
dapr/src/workflow/options.rs:307
↓ 2 callersFunctionprint_workflow_history
(prefix: &str, history: Option<&PropagatedHistory>)
examples/src/workflow-history-propagation/main.rs:352
↓ 2 callersFunctionproto_gen
( root_dir: PathBuf, build_client: bool, build_server: bool, out_dir: &str, protos: &[Path
proto-gen/src/main.rs:55
↓ 2 callersMethodpublish_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 callersFunctionpurge_workflow_state_by_filter_impl
( client: &mut TaskHubGrpcClient, filter: PurgeInstanceFilter, recursive: bool, )
dapr/src/workflow/client.rs:598
↓ 2 callersMethodquery_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 callersFunctionraise_event_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, event_name: &str, options: EventOptions,
dapr/src/workflow/client.rs:537
↓ 2 callersFunctionread_optional_env
(key: &str)
dapr/src/client/config.rs:196
↓ 2 callersFunctionread_timeout_env
()
dapr/src/client/config.rs:203
↓ 2 callersFunctionresume_workflow_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, reason: impl Into<String>, )
dapr/src/workflow/client.rs:528
↓ 2 callersFunctionsanitize_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 callersMethodsave_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 callersFunctionschedule_workflow_impl
( client: &mut TaskHubGrpcClient, name: &str, options: ScheduleOptions, )
dapr/src/workflow/client.rs:504
↓ 2 callersFunctionspawn_workflow
( tasks: &mut JoinSet<WorkflowRunResult>, mut client: WorkflowSchedulingClient, input: i32, )
examples/src/workflow-sustained/main.rs:144
↓ 2 callersMethodstart
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 callersMethodstart_time_utc
(&self)
dapr/src/workflow/options.rs:76
↓ 2 callersFunctionsuspend_workflow_impl
( client: &mut TaskHubGrpcClient, instance_id: &str, reason: impl Into<String>, )
dapr/src/workflow/client.rs:517
↓ 2 callersMethodtimeout
The configured connect timeout.
dapr/src/client/config.rs:176
↓ 2 callersMethodtry_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 callersMethodwait_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 callersMethodwith_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 callersMethodwith_data
(mut self, data: Any)
dapr/src/client/mod.rs:1480
↓ 2 callersMethodwith_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 callersMethodwith_repeats
(mut self, repeats: u32)
dapr/src/client/mod.rs:1490
↓ 2 callersMethodwith_scrub_pii
(mut self, scrub: bool)
dapr/src/client/mod.rs:1638
↓ 2 callersMethodwith_timeout
Set the gRPC connect timeout.
dapr/src/client/config.rs:160
↓ 1 callersMethodactivate_actor
( &self, actor_type: &str, id: &str, )
dapr/src/server/actor/runtime/mod.rs:313
↓ 1 callersMethodaddress
The configured gRPC endpoint.
dapr/src/client/config.rs:166
↓ 1 callersMethodapi_token
The configured Dapr API token, if any.
dapr/src/client/config.rs:171
↓ 1 callersMethodconfigure_method_routes
( &self, router: Router, runtime: Arc<ActorRuntime>, )
dapr/src/server/actor/runtime/mod.rs:230
↓ 1 callersMethodconverse_alpha1
Converse with an LLM # Arguments ConversationRequest - The request containing inputs to send to the LLM
dapr/src/client/mod.rs:719
↓ 1 callersMethodconverse_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 callersMethodcreate_actor
(&self, actor_id: &str, client: TonicClient)
dapr/src/server/actor/runtime/mod.rs:194
↓ 1 callersMethoddeactivate_actor
(&self, name: &str, id: &str)
dapr/src/server/actor/runtime/mod.rs:246
↓ 1 callersMethoddeactivate_all
(&self)
dapr/src/server/actor/runtime/mod.rs:259
↓ 1 callersFunctiondefault_sidecar_address
()
dapr/src/workflow/client.rs:486
↓ 1 callersMethoddelete_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 callersMethodget_actor_state
(&self, actor_id: &str)
dapr/src/server/actor/tests.rs:256
↓ 1 callersMethodget_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 callersMethodget_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