Function get_relayer_by_id
Source pub async fn get_relayer_by_id<J, RR, TR, NR, NFR, SR, TCR, PR>(
relayer_id: String,
state: &ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<RelayerRepoModel, 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
Retrieves a relayer by its ID from the repository.
§Arguments
relayer_id
- A string slice that holds the ID of the relayer.
state
- A reference to the application state.
§Returns
Result<RelayerRepoModel, ApiError>
- Returns a RelayerRepoModel
on success, or an
ApiError
on failure.