Trait multiversx_sc::io::ArgNestedTuple
source · pub trait ArgNestedTuple<AA>where
AA: EndpointArgumentApi + ManagedTypeApi + ErrorApi,{
type ArgNames;
// Required methods
fn check_num_single_args(index: i32);
fn next_single_arg(index: i32, arg_names: Self::ArgNames) -> Self;
fn next_multi_arg<L: TopDecodeMultiInput>(
loader: L,
arg_names: Self::ArgNames
) -> Self;
}
Expand description
Models an argument tree of the form (arg1, (arg2, ... (argn, ())))
, used for retrieving endpoint arguments.
It translates to a small algorithm determined at compile-time. That is why all methods are inlined.