pub struct ViewFunctionMetadata<'a> { /* private fields */ }Expand description
Metadata for the available View Functions. Currently these exist only at the pallet level, but eventually they could exist at the runtime level too.
Implementations§
Source§impl<'a> ViewFunctionMetadata<'a>
impl<'a> ViewFunctionMetadata<'a>
Sourcepub fn query_id(&self) -> &'a [u8; 32]
pub fn query_id(&self) -> &'a [u8; 32]
Query ID. This is used to query the function. Roughly, it is constructed by doing
twox_128(pallet_name) ++ twox_128("fn_name(fnarg_types) -> return_ty") .
Sourcepub fn inputs(
&self,
) -> impl ExactSizeIterator<Item = &'a MethodParamMetadata> + use<'a>
pub fn inputs( &self, ) -> impl ExactSizeIterator<Item = &'a MethodParamMetadata> + use<'a>
Method inputs.
Trait Implementations§
Source§impl<'a> Clone for ViewFunctionMetadata<'a>
impl<'a> Clone for ViewFunctionMetadata<'a>
Source§fn clone(&self) -> ViewFunctionMetadata<'a>
fn clone(&self) -> ViewFunctionMetadata<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ViewFunctionMetadata<'a>
impl<'a> Debug for ViewFunctionMetadata<'a>
impl<'a> Copy for ViewFunctionMetadata<'a>
Auto Trait Implementations§
impl<'a> Freeze for ViewFunctionMetadata<'a>
impl<'a> RefUnwindSafe for ViewFunctionMetadata<'a>
impl<'a> Send for ViewFunctionMetadata<'a>
impl<'a> Sync for ViewFunctionMetadata<'a>
impl<'a> Unpin for ViewFunctionMetadata<'a>
impl<'a> UnwindSafe for ViewFunctionMetadata<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more