multiversx_sc_modules::users

Trait ProxyTrait

Source
pub trait ProxyTrait: ProxyObjBase + Sized {
    // Provided methods
    fn get_user_id<Arg0: ProxyArg<ManagedAddress<Self::Api>>>(
        &mut self,
        address: Arg0,
    ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<usize>> { ... }
    fn get_user_address<Arg0: ProxyArg<usize>>(
        &mut self,
        user_id: Arg0,
    ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<ManagedAddress<Self::Api>>> { ... }
    fn get_num_users(
        &mut self,
    ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<usize>> { ... }
    fn update_user_address<Arg0: ProxyArg<MultiValueEncoded<Self::Api, ManagedAddress<Self::Api>>>>(
        &mut self,
        addresses: Arg0,
    ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>> { ... }
}

Provided Methods§

Source

fn get_user_id<Arg0: ProxyArg<ManagedAddress<Self::Api>>>( &mut self, address: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<usize>>

Source

fn get_user_address<Arg0: ProxyArg<usize>>( &mut self, user_id: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<ManagedAddress<Self::Api>>>

Source

fn get_num_users( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<usize>>

Source

fn update_user_address<Arg0: ProxyArg<MultiValueEncoded<Self::Api, ManagedAddress<Self::Api>>>>( &mut self, addresses: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§