Function call_plugin
Source pub async fn call_plugin<J, RR, TR, NR, NFR, SR, TCR, PR>(
plugin_id: String,
plugin_call_request: PluginCallRequest,
state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<HttpResponse, ApiError>where
J:
JobProducerTrait +
Send +
Sync + 'static,
RR:
RelayerRepository +
Repository<
RelayerRepoModel,
String> +
Send +
Sync + 'static,
TR:
TransactionRepository +
Repository<
TransactionRepoModel,
String> +
Send +
Sync + 'static,
NR:
NetworkRepository +
Repository<
NetworkRepoModel,
String> +
Send +
Sync + 'static,
NFR:
Repository<
NotificationRepoModel,
String> +
Send +
Sync + 'static,
SR:
Repository<
SignerRepoModel,
String> +
Send +
Sync + 'static,
TCR:
TransactionCounterTrait +
Send +
Sync + 'static,
PR:
PluginRepositoryTrait +
Send +
Sync + 'static,
Expand description
Call plugin
§Arguments
plugin_id
- The ID of the plugin to call.
plugin_call_request
- The plugin call request.
state
- The application state containing the plugin repository.
§Returns
The result of the plugin call.