Trait Query
pub trait Query:
Send
+ Sync
+ 'static {
// Required methods
fn accounts<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAccountsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAccountsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn account<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAccountRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAccountResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn account_address_by_id<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAccountAddressByIdRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAccountAddressByIdResponse>, 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 module_accounts<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryModuleAccountsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryModuleAccountsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn module_account_by_name<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryModuleAccountByNameRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryModuleAccountByNameResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn bech32_prefix<'life0, 'async_trait>(
&'life0 self,
request: Request<Bech32PrefixRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Bech32PrefixResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn address_bytes_to_string<'life0, 'async_trait>(
&'life0 self,
request: Request<AddressBytesToStringRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AddressBytesToStringResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn address_string_to_bytes<'life0, 'async_trait>(
&'life0 self,
request: Request<AddressStringToBytesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AddressStringToBytesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn account_info<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAccountInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAccountInfoResponse>, 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.