Trait polkadot_sdk_frame::runtime::apis::ConstructRuntimeApi
pub trait ConstructRuntimeApi<Block, C>{
type RuntimeApi: ApiExt<Block>;
// Required method
fn construct_runtime_api(call: &C) -> ApiRef<'_, Self::RuntimeApi>;
}
Expand description
Something that can be constructed to a runtime api.
Required Associated Types§
type RuntimeApi: ApiExt<Block>
type RuntimeApi: ApiExt<Block>
The actual runtime api that will be constructed.
Required Methods§
fn construct_runtime_api(call: &C) -> ApiRef<'_, Self::RuntimeApi>
fn construct_runtime_api(call: &C) -> ApiRef<'_, Self::RuntimeApi>
Construct an instance of the runtime api.
Object Safety§
This trait is not object safe.