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§
Sourceasync fn admin_list_async(&self) -> Result<AdminListResponse, CwEnvError>
async fn admin_list_async(&self) -> Result<AdminListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AdminList variant
Sourceasync fn allowance_async(
&self,
spender: impl Into<String>,
) -> Result<Allowance, CwEnvError>
async fn allowance_async( &self, spender: impl Into<String>, ) -> Result<Allowance, CwEnvError>
Automatically generated wrapper around QueryMsg::Allowance variant
Sourceasync fn permissions_async(
&self,
spender: impl Into<String>,
) -> Result<PermissionsInfo, CwEnvError>
async fn permissions_async( &self, spender: impl Into<String>, ) -> Result<PermissionsInfo, CwEnvError>
Automatically generated wrapper around QueryMsg::Permissions variant
Sourceasync fn can_execute_async(
&self,
msg: CosmosMsg<T>,
sender: impl Into<String>,
) -> Result<CanExecuteResponse, CwEnvError>
async fn can_execute_async( &self, msg: CosmosMsg<T>, sender: impl Into<String>, ) -> Result<CanExecuteResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::CanExecute variant
Sourceasync fn all_allowances_async(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllAllowancesResponse, CwEnvError>
async fn all_allowances_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAllowancesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AllAllowances variant
Sourceasync fn all_permissions_async(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllPermissionsResponse, CwEnvError>
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§
impl<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync, T, SupportedContract> AsyncQueryMsgFns<Chain, CwOrchQueryMsgType, T> for SupportedContractwhere
QueryMsg<T>: Into<CwOrchQueryMsgType>,
T: Clone + Debug + PartialEq + JsonSchema + Debug + Serialize + DeserializeOwned,
SupportedContract: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>,
Available on non-WebAssembly only.