AsyncQueryMsgFns

Trait AsyncQueryMsgFns 

Source
pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync, T = Empty>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where QueryMsg<T>: Into<CwOrchQueryMsgType>, T: Clone + Debug + PartialEq + JsonSchema + Debug + Serialize + DeserializeOwned,
{ // Provided methods async fn admin_list_async(&self) -> Result<AdminListResponse, CwEnvError> { ... } async fn allowance_async( &self, spender: impl Into<String>, ) -> Result<Allowance, CwEnvError> { ... } async fn permissions_async( &self, spender: impl Into<String>, ) -> Result<PermissionsInfo, CwEnvError> { ... } async fn can_execute_async( &self, msg: CosmosMsg<T>, sender: impl Into<String>, ) -> Result<CanExecuteResponse, CwEnvError> { ... } async fn all_allowances_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAllowancesResponse, CwEnvError> { ... } async fn all_permissions_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllPermissionsResponse, 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

async fn admin_list_async(&self) -> Result<AdminListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AdminList variant

Source

async fn allowance_async( &self, spender: impl Into<String>, ) -> Result<Allowance, CwEnvError>

Automatically generated wrapper around QueryMsg::Allowance variant

Source

async fn permissions_async( &self, spender: impl Into<String>, ) -> Result<PermissionsInfo, CwEnvError>

Automatically generated wrapper around QueryMsg::Permissions variant

Source

async fn can_execute_async( &self, msg: CosmosMsg<T>, sender: impl Into<String>, ) -> Result<CanExecuteResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::CanExecute variant

Source

async fn all_allowances_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAllowancesResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AllAllowances variant

Source

async fn all_permissions_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllPermissionsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AllPermissions 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: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync, T, SupportedContract> AsyncQueryMsgFns<Chain, CwOrchQueryMsgType, T> for SupportedContract
where QueryMsg<T>: Into<CwOrchQueryMsgType>, T: Clone + Debug + PartialEq + JsonSchema + Debug + Serialize + DeserializeOwned, SupportedContract: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>,

Available on non-WebAssembly only.