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>
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.