multiversx_sc_modules::only_admin

Trait EndpointWrappers

Source
pub trait EndpointWrappers: ContractBase + OnlyAdminModule {
    // Provided methods
    fn call_is_admin(&self) { ... }
    fn call_add_admin(&self) { ... }
    fn call_remove_admin(&self) { ... }
    fn call_admins(&self) { ... }
    fn call(&self, fn_name: &str) -> bool { ... }
    fn callback_selector(
        &self,
        ___cb_closure___: CallbackClosureForDeser<Self::Api>,
    ) -> CallbackSelectorResult<Self::Api> { ... }
    fn callback(&self) { ... }
}

Provided Methods§

Source

fn call_is_admin(&self)

Source

fn call_add_admin(&self)

Source

fn call_remove_admin(&self)

Source

fn call_admins(&self)

Source

fn call(&self, fn_name: &str) -> bool

Source

fn callback_selector( &self, ___cb_closure___: CallbackClosureForDeser<Self::Api>, ) -> CallbackSelectorResult<Self::Api>

Source

fn callback(&self)

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.

Implementations on Foreign Types§

Source§

impl<A> EndpointWrappers for UniversalContractObj<A>
where A: VMApi,

Implementors§