multiversx_sc_modules::only_admin

Trait ProxyTrait

Source
pub trait ProxyTrait: ProxyObjBase + Sized {
    // Provided methods
    fn is_admin<Arg0: ProxyArg<ManagedAddress<Self::Api>>>(
        &mut self,
        address: Arg0,
    ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<bool>> { ... }
    fn add_admin<Arg0: ProxyArg<ManagedAddress<Self::Api>>>(
        &mut self,
        address: Arg0,
    ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>> { ... }
    fn remove_admin<Arg0: ProxyArg<ManagedAddress<Self::Api>>>(
        &mut self,
        address: Arg0,
    ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>> { ... }
    fn admins(
        &mut self,
    ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<UnorderedSetMapper<Self::Api, ManagedAddress<Self::Api>>>> { ... }
}

Provided Methods§

Source

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

Source

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

Source

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

Source

fn admins( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<UnorderedSetMapper<Self::Api, ManagedAddress<Self::Api>>>>

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§