pub trait ContractsRegistryApiServer<AccountId>: Sized + Send + Sync + 'static {
// Required method
fn fetch_contracts(
&self,
author: Option<AccountId>,
metadata: Option<Vec<u8>>
) -> RpcResult<FetchContractsResult>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where AccountId: Send + Sync + 'static + DeserializeOwned { ... }
}
Expand description
Server trait implementation for the ContractsRegistryApi
RPC API.
Required Methods§
Provided Methods§
sourcefn into_rpc(self) -> RpcModule<Self>where
AccountId: Send + Sync + 'static + DeserializeOwned,
fn into_rpc(self) -> RpcModule<Self>where AccountId: Send + Sync + 'static + DeserializeOwned,
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.