pub trait ViewFunctionTypeInfo {
type TypeId: Clone;
// Required method
fn view_function_info(
&self,
pallet_name: &str,
function_name: &str,
) -> Result<ViewFunctionInfo<'_, Self::TypeId>, ViewFunctionInfoError<'_>>;
}Expand description
This is implemented for anything capable of providing information about view functions (primarily metadata V16 and onwards).
Required Associated Types§
Required Methods§
Sourcefn view_function_info(
&self,
pallet_name: &str,
function_name: &str,
) -> Result<ViewFunctionInfo<'_, Self::TypeId>, ViewFunctionInfoError<'_>>
fn view_function_info( &self, pallet_name: &str, function_name: &str, ) -> Result<ViewFunctionInfo<'_, Self::TypeId>, ViewFunctionInfoError<'_>>
Get the information needed to decode a specific View Function.