pub trait Query:
Send
+ Sync
+ 'static {
// Required methods
fn allowance<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAllowanceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAllowanceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn allowances<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAllowancesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAllowancesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn allowances_by_granter<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAllowancesByGranterRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAllowancesByGranterResponse>, 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.