Trait Query

pub trait Query:
    Send
    + Sync
    + 'static {
Show 13 methods // Required methods fn balance<'life0, 'async_trait>( &'life0 self, request: Request<QueryBalanceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryBalanceResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn all_balances<'life0, 'async_trait>( &'life0 self, request: Request<QueryAllBalancesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryAllBalancesResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn spendable_balances<'life0, 'async_trait>( &'life0 self, request: Request<QuerySpendableBalancesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySpendableBalancesResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn spendable_balance_by_denom<'life0, 'async_trait>( &'life0 self, request: Request<QuerySpendableBalanceByDenomRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySpendableBalanceByDenomResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn total_supply<'life0, 'async_trait>( &'life0 self, request: Request<QueryTotalSupplyRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalSupplyResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn supply_of<'life0, 'async_trait>( &'life0 self, request: Request<QuerySupplyOfRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySupplyOfResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn params<'life0, 'async_trait>( &'life0 self, request: Request<QueryParamsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn denom_metadata<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomMetadataRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomMetadataResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn denom_metadata_by_query_string<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomMetadataByQueryStringRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomMetadataByQueryStringResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn denoms_metadata<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomsMetadataRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomsMetadataResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn denom_owners<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomOwnersRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomOwnersResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn denom_owners_by_query<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomOwnersByQueryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomOwnersByQueryResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; fn send_enabled<'life0, 'async_trait>( &'life0 self, request: Request<QuerySendEnabledRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySendEnabledResponse>, Status>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with QueryServer.

Required Methods§

fn balance<'life0, 'async_trait>( &'life0 self, request: Request<QueryBalanceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryBalanceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn all_balances<'life0, 'async_trait>( &'life0 self, request: Request<QueryAllBalancesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryAllBalancesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn spendable_balances<'life0, 'async_trait>( &'life0 self, request: Request<QuerySpendableBalancesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySpendableBalancesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn spendable_balance_by_denom<'life0, 'async_trait>( &'life0 self, request: Request<QuerySpendableBalanceByDenomRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySpendableBalanceByDenomResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn total_supply<'life0, 'async_trait>( &'life0 self, request: Request<QueryTotalSupplyRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalSupplyResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn supply_of<'life0, 'async_trait>( &'life0 self, request: Request<QuerySupplyOfRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySupplyOfResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn params<'life0, 'async_trait>( &'life0 self, request: Request<QueryParamsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn denom_metadata<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomMetadataRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomMetadataResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn denom_metadata_by_query_string<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomMetadataByQueryStringRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomMetadataByQueryStringResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn denoms_metadata<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomsMetadataRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomsMetadataResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn denom_owners<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomOwnersRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomOwnersResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn denom_owners_by_query<'life0, 'async_trait>( &'life0 self, request: Request<QueryDenomOwnersByQueryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomOwnersByQueryResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn send_enabled<'life0, 'async_trait>( &'life0 self, request: Request<QuerySendEnabledRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySendEnabledResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§