Trait RegistryExecFns

Source
pub trait RegistryExecFns<Chain, CwOrchExecuteMsgType>: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>
where Chain: TxHandler, ExecuteMsg: Into<CwOrchExecuteMsgType>,
{ // Provided methods fn remove_module( &self, module: ModuleInfo, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn yank_module( &self, module: ModuleInfo, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn propose_modules( &self, modules: Vec<(ModuleInfo, ModuleReference)>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn update_module_configuration( &self, module_name: impl Into<String>, namespace: Namespace, update_module: UpdateModule, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn approve_or_reject_modules( &self, approves: Vec<ModuleInfo>, rejects: Vec<ModuleInfo>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn claim_namespace( &self, account_id: AccountId, namespace: impl Into<String>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn forgo_namespace( &self, namespaces: Vec<String>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn add_account( &self, creator: impl Into<String>, namespace: Option<String>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn update_config( &self, namespace_registration_fee: Option<Clearable<Coin>>, security_enabled: Option<bool>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } fn update_ownership( &self, arg0: Action, ) -> Result<<Chain as TxHandler>::Response, CwEnvError> { ... } }
Expand description

Automatically derived trait that allows you to call the variants of the message directly without the need to construct the struct yourself.

Provided Methods§

Source

fn remove_module( &self, module: ModuleInfo, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::RemoveModule variant

Source

fn yank_module( &self, module: ModuleInfo, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::YankModule variant

Source

fn propose_modules( &self, modules: Vec<(ModuleInfo, ModuleReference)>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ProposeModules variant

Source

fn update_module_configuration( &self, module_name: impl Into<String>, namespace: Namespace, update_module: UpdateModule, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateModuleConfiguration variant

Source

fn approve_or_reject_modules( &self, approves: Vec<ModuleInfo>, rejects: Vec<ModuleInfo>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ApproveOrRejectModules variant

Source

fn claim_namespace( &self, account_id: AccountId, namespace: impl Into<String>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ClaimNamespace variant

Source

fn forgo_namespace( &self, namespaces: Vec<String>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::ForgoNamespace variant

Source

fn add_account( &self, creator: impl Into<String>, namespace: Option<String>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::AddAccount variant

Source

fn update_config( &self, namespace_registration_fee: Option<Clearable<Coin>>, security_enabled: Option<bool>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateConfig variant

Source

fn update_ownership( &self, arg0: Action, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>

Automatically generated wrapper around ExecuteMsg::UpdateOwnership variant

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§

Source§

impl<Chain, CwOrchExecuteMsgType, SupportedContract> ExecuteMsgFns<Chain, CwOrchExecuteMsgType> for SupportedContract
where Chain: TxHandler, ExecuteMsg: Into<CwOrchExecuteMsgType>, SupportedContract: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>,