pub trait ExecuteMsgFns<Chain: TxHandler, CwOrchExecuteMsgType>: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>where
ExecuteMsg: Into<CwOrchExecuteMsgType>,{
// Provided methods
fn propose(
&self,
description: impl Into<String>,
msgs: Vec<CosmosMsg<Empty>>,
title: impl Into<String>,
latest: Option<Expiration>,
) -> Result<TxResponse<Chain>, CwEnvError> { ... }
fn vote(
&self,
proposal_id: u64,
vote: Vote,
) -> Result<TxResponse<Chain>, CwEnvError> { ... }
fn execute(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError> { ... }
fn close(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError> { ... }
fn member_changed_hook(
&self,
arg0: MemberChangedHookMsg,
) -> Result<TxResponse<Chain>, 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§
Sourcefn propose(
&self,
description: impl Into<String>,
msgs: Vec<CosmosMsg<Empty>>,
title: impl Into<String>,
latest: Option<Expiration>,
) -> Result<TxResponse<Chain>, CwEnvError>
fn propose( &self, description: impl Into<String>, msgs: Vec<CosmosMsg<Empty>>, title: impl Into<String>, latest: Option<Expiration>, ) -> Result<TxResponse<Chain>, CwEnvError>
Automatically generated wrapper around ExecuteMsg::Propose variant
Sourcefn vote(
&self,
proposal_id: u64,
vote: Vote,
) -> Result<TxResponse<Chain>, CwEnvError>
fn vote( &self, proposal_id: u64, vote: Vote, ) -> Result<TxResponse<Chain>, CwEnvError>
Automatically generated wrapper around ExecuteMsg::Vote variant
Sourcefn execute(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError>
fn execute(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError>
Automatically generated wrapper around ExecuteMsg::Execute variant
Sourcefn close(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError>
fn close(&self, proposal_id: u64) -> Result<TxResponse<Chain>, CwEnvError>
Automatically generated wrapper around ExecuteMsg::Close variant
Sourcefn member_changed_hook(
&self,
arg0: MemberChangedHookMsg,
) -> Result<TxResponse<Chain>, CwEnvError>
fn member_changed_hook( &self, arg0: MemberChangedHookMsg, ) -> Result<TxResponse<Chain>, CwEnvError>
Automatically generated wrapper around ExecuteMsg::MemberChangedHook 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§
impl<Chain: TxHandler, CwOrchExecuteMsgType, SupportedContract> ExecuteMsgFns<Chain, CwOrchExecuteMsgType> for SupportedContractwhere
ExecuteMsg: Into<CwOrchExecuteMsgType>,
SupportedContract: CwOrchExecute<Chain, ExecuteMsg = CwOrchExecuteMsgType>,
Available on non-WebAssembly only.